Affiliate link
Python - Variables
A variable is a name that is used to refer to a value in a program. In Python, variables are created using an assignment statement.
Variables naming convention
- Lowercase letters (a to z)
- Uppercase letters (A to Z)
- Numbers (0 to 9)
- Underscore (_)
Variables name rules
- Variables name is case-sensitive.
- Variables name must start with letters or underscore. Start with numbers is not allowed.
- No Python reserved keywords.
Python variables - Example
a1 = 1
b0_ = a + 4
learn_language = ['Python', 'Node.js', 'GO']
message = 'Learn Python'
Affiliate link
Affiliate link



