Variables
Level: Beginner
Variables are like a dictionary of items in your program and fall into a few different groups, such as:
Strings. Sentences or letters concentrated into the center of quotation marks.
Integers. Strings with only numbers and no quotation marks.
Bool. True or False statements.
Floating point. Allows for decimal points.
All of the following represent data that can be defined for later, all can be defined easily like so.
All can be easily accessed by putting the variable name in the data part of a function.
But most functions usually only allow certain types of variables so pay attention.
Last updated
Was this helpful?