In Python, you will often need to work with different types of data to make your code work. There are several different types:
- Strings – These are usually bits of text enclosed within quotation marks “”.
- Integer – This the term Python uses for a number.
- Float – This is a number with a factional component (i.e. a decimal point).
- Boolean – These are datatypes with two possible values: True or False.
Exercise 1 – Decide on Data Types
Apply Your Thinking:
For this exercise, open the Python file below and fill in the datatypes.