What Is Python

Python is a high-level programming language that was conceived in the late 1980s and implemented in 1989. Python is widely used for a wide range of applications which are:

Python is a pure object-oriented language meaning that the language is designed based on objects. In Python, everything is an object and every object has attributes and methods. Being an object-oriented programming language includes Python in the stack of the modern programming languages that consume most of the programming industry today.

Python is a cross-platform language designed to work the same in every computer
operating system.

Python libraries which support different science and technology fields, from bioinformatics, to web scrapping, to earthquakes.

 

Variables and Data type

A variable in Python, just like in other programming languages is a storage location symbolized with a name given by the programmer.

The value that a variable can hold may be of various data types

No need to declare Variables based on the value the appropriate data type it will set.
Int,float,string,bool etc…

Python Lists

python_list is simply a variable name. What's after the assignment operator is what we refer to as a Python list. As you see, a list is made of a sequence of items separated by commas. Each item of the list has its own datatype.

Syn: emp[100,”Prasad”,8900]

tuples.

A tuple just like a list is a sequence of items. The difference between tuples and lists is that lists are mutable, but tuples are not. Once you have defined a list, you can add, remove or modify its items. The same is not true for tuples. Creating a tuple follows the same concept as with lists, but here you need to use round brackets to let Python understand that you are creating a tuple.

Ex: emp(100,”Prasad”,5400)

lists and tuples are indexed sequences meaning that each item is associated to an index starting from zero.

Sets

Sets are another datatype that resembles lists and tuples. However, unlike lists and tuples, sets are unordered collections of items. That means no indexing is associated to the items of a set. They do not allow duplicate items.
Ex: emp={100,”Prasad”,5400}

For
More Explanation
&
Online Classes

Contact Us:
+919885348743