What is Python?
Python is an open-source, general-purpose, high-level, and object-oriented programming language.
It was created by Guido van Rossum.
Python consists of vast libraries and various frameworks like Django, TensorFlow, Flask, Pandas, Keras, etc.
How to Install Python?
You can install Python on your system, whether it is Windows, macOS, Ubuntu, CentOS, etc. Below are the links for the installation:
Installation on Ubuntu
- Ubuntu:
apt-get install python3.6
Installation on Linux
linux$ sudo apt install python3.6
Python 3.6.14
Data types in Python
Python Data types are the classification or categorization of data items.
It represents the kind of value that tells what operations can be performed on a particular data.
Since everything is an object in Python programming, Python data types are classes and variables are instances (objects) of these classes.
Python supports various data types:
Numeric Types: Integers (
int
), Floats (float
), Complex Numbers (complex
)Sequence Types: Lists (
list
), Tuples (tuple
), RangeText Sequence Type: Strings (
str
)Set Types: Sets (
set
), Frozen Sets (frozenset
)Mapping Type: Dictionaries (
dict
)Boolean Type: Boolean (
bool
)Binary Types: Bytes (
bytes
), Byte Arrays (bytearray
), Memory Views (memoryview
)