Python - Variables

Опубликовано: 22 Июнь 2026
на канале: vintagetutorials92
29
5

‪@vintagetutorials92‬ : Python Variables
Variable can have a short name eg. a, b or a descriptive name (numbers, class).
Python variables rules:
variable must start- with a letter or the underscore character
variable cannot start with a number
variable can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
variable names are case-sensitive (big, Big and BIG are different variables)
A variable name cannot be Python keywords.



Variable defining ways

Camel case:
Eg. myClassName

Pascal Case:
Eg. MyClassName

Snake Case:
Eg. my_class_name