Boolean mybool = True
Please note that True or False are built-in Boolean values in Python and should not be enclosed in quotes; otherwise, they would be stored as strings.
String mystr = "hello"
Because the value "hello" is enclosed in quotes and has more than one character, Python recognizes it as a string. It's smart like that! ๐
Integer myint = 2
Integers have no decimal place, and because they are numbers, they don't need to be enclosed in quotes. If you were to enclose them, the data type would be a string.
Float myfloat = 3.0
The same logic applies to floats as it does to integers (they don't need quotes). However, if the value has a decimal place, Python automatically saves it as a float.