You can store stuff as strings, integers, floating point numbers (floats), or booleans. Tell me if I left something out. Anyway, let's look at some code and then we can explain the details.
What we see is kind of self explanatory. In fact, booleans have true or false values. Integers hold integers. Floats hold numbers with decimals and strings hold words.
Please remember, that strings are in single or double quotes with double being more common.
Code:
# This is an example of a Boolean.
Joe_is_from_Chile = true
# This is an example of an # integer.
Speed limit = 55
# This is an example of a float.
Another_Way_To_Write_The_Last_Line = 55.0
# This is an example of a string.
Name_Of_Woman = "Jessica"
What we see is kind of self explanatory. In fact, booleans have true or false values. Integers hold integers. Floats hold numbers with decimals and strings hold words.
Please remember, that strings are in single or double quotes with double being more common.
Last edited: