Data Types – Commonly used¶
Python has several data types which are commonly used. There are advanced data types such as Data Frames as part of modules such as pandas.* Numeric – int
, float
, complex
- Alpha Numeric –
str
- Boolean –
bool
(it will be covered in another topic) - Collections
list
set
dict
tuple
- type(VARIABLE_NAME) returns the data type of the variable.
- All the data types are nothing but classes.
- We can type cast data types by invoking constructor.
We will deep dive into all the above commonly used data types in the subsequent topics in this section as well as topic in subsequent sections. We have tons of material around collections and hence stay tuned.