variables have to start with a letter or underscore
the rest should be letters, numbers, or underscores
case sensitive
Conventions
lower_snake_case (underscores bet. words)
variables should be lower case (except constants)
UpperCamelCase usually refers to a class
Variables that start and end with two underscores are supposed to be private or left alone
Double vs string quotes
Doesn’t matter but just be consistent throughout the same file
Just a stylistic thing
None
special value None
represent nothingness (python’s version of null)
# None leuwprda = Nonetype(child) # NoneType
Escape characters/sequences
new_line = "hello \nworld"print(new_line)#hello#worlds = "backlast : \\"print(s) #"backslash: \"s = "I said \"ha ha\"" #just use ' inside or vise versaprint(s) # "I said "ha ha""