![]() ![]() |
Conceptual Review (page 14 of 55) |
Variables are storage containers. Said differently, a variable is a memory location that is used to store something such that we can reference it later.
In Python, variable names must start with an underscore or a letter
Good: spam eggs spam23 _speed
Bad: 23spam #sign var.12
Python has no command for declaring a variable. A variable is created when you first assign a value to it (i.e., x = 6 creates an int variable named x).
Variable names are case sensitive in Python.
Different: spam Spam SPAM