When using variables and constants in your programs it is important to use the correct data types.
The main data types are:
- Integer: for whole numbers only such as 7,
- Float/Real: for numbers with decimals only such as 9.81,
- String: for piece of text. It can also include number digits and punctuation signs. e.g. “IP4 5HD”, “Hello world!”,
- Boolean: for values which are either True or False,
- Date & Time: for dates! (With or without a time): e.g. 31/12/2015 00:00:00, 25/12/2015