Select the data type for each example below.
Possible answers
-Int
-float
-string
![Select the data type for each example below Possible answers Int float string class=](https://us-static.z-dn.net/files/daf/937a135e0ef8cfe7f778f096428c723f.png)
Answer:
2.5 = float
'2.5' = str
3 = int
Explanation:
The data type: "float" is used for positive or negative decimals.
The data type: "str" is used for a sequence of letters, numbers, or symbols. Since the decimal used apostrophes, this means it's a character literal.
The data type: "int" is used for any positive or negative whole number.