Although there are many different data types in Python, some are much more common than others. Some of the basic and most common data types in Python are:
- int : this type of data consists of numbers and particularly integers.
- float : this type of data refers to numbers with decimals
- str : standing for string, an str type of variable keeps data as a text string.
This lesson has relatively more reading parts. If you are a CS major or if you have programming experience you might want to skim it or skip through. Otherwise if you don’t have programming exposure it’s a great opportunity to grasp some of the most fundamental programming concepts (and in particular Python) which you will use while coding in future.