In Python Variable Names:- it can be only one word, only can use letters, numbers & underscroes in it.
can not start with a Number.
In SAS Variable Names:-
SAS variable names may be up to 32 characters in length.
The first character must begin with an alphabetic character or an underscore. …
A variable name may not contain blanks.
A variable name may not contain any special characters other than the underscore.
A variable name may contain mixed case.
other than restriction on length of Variable names in SAS other rules for
Variables Names are similar for both of them.