–>names should not start with a number –>names should not contain spaces, we can use underscore ( _ ) –>names can not contain any of these symbols: ‘”,<>/?|!@#%^&*~-+ –>Best practice is if variable names are lower case along with underscore. –>avoid using Python built-in keywords like list and str –>avoid using the single characters l (lowercase letter el), O (uppercase letter oh) and I (uppercase letter eye) as they can be confused with 1 and 0
In the below example we have shown all the different valid syntaxes for variable names. NOTE: Variables myvar and MYVAR are not the same because python is case sensitive. ring.