Python supports different types of variables (datatypes) such as whole numbers, floating point numbers and text.  

You do not need to specify the datatype of a variable, you can simply assign any value to a variable. Type the program below and start it.

Related course: Complete Python Bootcamp: Go from zero to hero in Python

Datatypes and use

The example below shows you several variables. These can be assigned as you wish. Once defined you can print them or use arithmetics.

You should see several lines containing numbers and text:

python on dos

Study drill

Try the exercises below

After completing these continue with the next exercise.