Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

variable naming rule in python

#Valid
myvar = "John"
my_var = "John"
_my_var = "John"
myVar = "John"
MYVAR = "John"
myvar2 = "John"

#Invalid
2myvar = "John"
my-var = "John"
my var = "John"
 
PREVIOUS NEXT
Tagged: #variable #naming #rule #python
ADD COMMENT
Topic
Name
3+8 =