You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nicholas DiBari edited this page Jan 18, 2018
·
2 revisions
Variables
Variables are the way you store data in a program. They are referenced by a name and can be used to store various types of data. You can store integers (1, 47, -2), floating point numbers (0.25421, 68.21, -97.21123), strings ('John', 'apple', 'word'), and Boolean Values (True and False). Throughout the execution of your program, these values can change values AND types, meaning a variable can hold a string at one point in the code and later be used to hold an integer.
Declaring variables is easy in Python. Simply use the '=' operator to assign a name to a value.