Python is a general purpose high level programming language. Python was developed by Guido Van Rossam in 1989.
Popular Post: Python
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.
The Python syntax defines all the set of rules that are used to create sentences in Python programming.
Python Comments: Comments are used to explain python code and make it more readable for other programmers.
In Python, Variables are containers for storing data values. A variable is created when we first assign a value to it.
Data Type represents the type of data present inside a variable. In Python we are not required to specify the type explicitly.
In Python, Python supports four different numerical types - int, float, long and complex. Variables numeric created when value assign.
We can convert one type value to another type. This conversion is called Typecasting or type coersion.
In Python, a string is a sequence of Unicode characters. You can display a string literal with the print() function.
Python boolean is built-in data types provided by Python, which represent one of two values: True or False.
Python Operators: Arithmetic operators are used to performing mathematical operations like addition, subtraction, multiplication, and division.
In Python, Lists are used to store multiple items in a single variable. Lists are created using square brackets.
In Python, Tuples are used to store multiple items in a single variable. Tuples are written with round brackets.
In Python, Sets are used to store multiple items in a single variable. A set is an unordered collection of items.
Python Dictionaries are used to store data values in key. Dictionaries are written with curly brackets, and have keys and values.
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.
In Python, the while loop we can execute a set of statements as long as a condition is true.
Python For Loops is used for iterating over a sequence (a list, a tuple, a dictionary, a set, or a string).
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 Functions are anonymous function means that the function is without a name. A lambda function can take any number of arguments.
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.
In Python every thing is an object. To create object we required some model or blue print, which is nothing but class.
In Python, Inheritance method allows us to inheriting the properties of parent class into a child class. It is an OOP concept.
Iterator in python is an object that is used to iterate over iterable objects like lists, tuples, dicts, and sets.
A variable is only available from inside the function it is created is called scope. If variable created inside function called local scope.