variable: a value that can changeCode
x = "Hello World"
print(x)
Output
Code
x = "Hello World"
print(x)
Output
Hello World
Code
a = "Output 1"
print(a)
a = "Output 2"
print(a)
Output
Code
a = "Output 1"
print(a)
a = "Output 2"
print(a)
Output
Output 1
Ouptut 2
Variable Names
- Must begin with letter or underscore
- Letters, numbers, and underscores
- Case sensitive
- Descriptive names
- snake_case
- Reserve Traditional Names
- Avoid Keywords
- Longer > Shorter