Popular Post: Python

Image

Python Introduction

Python is a general purpose high level programming language. Python was developed by Guido Van Rossam in 1989.

Image

Python Installation

In this tutorial, you will learn how to install Python on Windows PC or Mac. The syntax python --version is used to check Python Version.

Image

Python Syntax

The Python syntax defines all the set of rules that are used to create sentences in Python programming.

Image

Python Comments

Python Comments: Comments are used to explain python code and make it more readable for other programmers.

Image

Python Variables

In Python, Variables are containers for storing data values. A variable is created when we first assign a value to it.

Image

Python Data Types

Data Type represents the type of data present inside a variable. In Python we are not required to specify the type explicitly.

Image

Python Numbers

In Python, Python supports four different numerical types - int, float, long and complex. Variables numeric created when value assign.

Image

Python Casting

We can convert one type value to another type. This conversion is called Typecasting or type coersion.

Image

Python Strings

In Python, a string is a sequence of Unicode characters. You can display a string literal with the print() function.

Image

Python Booleans

Python boolean is built-in data types provided by Python, which represent one of two values: True or False.

Image

Python Operators

Python Operators: Arithmetic operators are used to performing mathematical operations like addition, subtraction, multiplication, and division.

Image

Python Lists

In Python, Lists are used to store multiple items in a single variable. Lists are created using square brackets.

Image

Python Tuples

In Python, Tuples are used to store multiple items in a single variable. Tuples are written with round brackets.

Image

Python Sets

In Python, Sets are used to store multiple items in a single variable. A set is an unordered collection of items.

Image

Python Dictionaries

Python Dictionaries are used to store data values in key. Dictionaries are written with curly brackets, and have keys and values.

Image

Python If ... Else

In Python, if a condition is true it will execute a block of statements and if the condition is false it will execute nothing or other block of code.

Image

Python For Loops

Python For Loops is used for iterating over a sequence (a list, a tuple, a dictionary, a set, or a string).

Image

Python Functions

In Python, a function is a block of code which performs a specific task. You can pass data, known as parameters, into a function

Image

Python Lambda

Python Lambda Functions are anonymous function means that the function is without a name. A lambda function can take any number of arguments.

Image

Python Array

A Python Array is a collection of common type of data structures having elements with same data type. Python does not have built-in support for Arrays.

Image

Python Inheritance

In Python, Inheritance method allows us to inheriting the properties of parent class into a child class. It is an OOP concept.

Image

Python Iterators

Iterator in python is an object that is used to iterate over iterable objects like lists, tuples, dicts, and sets.

Image

Python Scope

A variable is only available from inside the function it is created is called scope. If variable created inside function called local scope.