Popular Post: Python

Python Introduction

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

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.

Python Syntax

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

Python Comments

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

Python Variables

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

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.

Python Numbers

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

Python Casting

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

Python Strings

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

Python Booleans

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

Python Operators

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

Python Lists

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

Python Tuples

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

Python Sets

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

Python Dictionaries

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

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.

Python For Loops

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

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

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.

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.

Python Inheritance

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

Python Iterators

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

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.