2) Common Data Types

When you start writing programs, you will be using a lot of variables. Variables are regions in memory that store certain data. If you’re writing a program then it will be manipulating some kind of data. This data could either be an Integer (whole numbers), Float (numbers with decimal), String (text) or many more. These different kinds of data are called as Data Types

All of these data can be stored in a variable by a direct assignment, like this:

[cc lang=”python”] var1 = (some data) # Later we keep using var1 in various ways, as we will soon see.

There are many different data types in python and here we are going to cover the most popular ones here.