Data Types in python
|
|
| Data Types in python |
Before we go any further, it’s a good idea to introduce the main types of data that we use in Python. Each value in Python has a type.
Text, like "Hello world", is called a string.
Whole numbers are called integers.
And numbers with a decimal point are called floats.
Now, we’ve already encountered strings and integers, so you know what that means...Time to float!
Some examples of numbers that are represented as floats are 0.85 and -4.67238 etc.