age
to hold a value of 18
and set year
to 2013
with the following statements:
Values aren't limited to numbers!
You can also set values to letters, words, or phrases. For example, you can set the variable hobby
to hold a value of "video games"
with the following statement:
Letters, words, and phrases need to be in quotes
favorite_food
).
Give yourself a name!
name
to your desired name!Beta Testing Hotkeys (can't be editing code when using them)
Things you can enter into the code box
Integers
: non-decimal numbers (e.g. -5, 0, 42 are integers)
Floats
: numbers with fractional value, written with a decimal point(e.g. 3.14, -2.6 are floats)
Strings
: sequence of characters bound by quotes (e.g. 'hello', '123', 'a' are strings)
Booleans
: a special datatype that can only be True
or False
Remember, True
and False
need to have the proper capitalization "T" and "F".
BELOW IS FILLER/OLD TEXT
Values aren't limited to numbers!
You can also set values to letters, words, or phrases. For example, you can set the variable hobby
to hold a value of "video games"
with the following statement:
Letters, words, and phrases need to be in quotes
favorite_food
). Give yourself a name!
name
to your desired name!filler text