Naming variables may seem to be a minor topic, but trust us, adopting a good habit of proper naming will save you a lot of time and nerves down the road. Do your best to name variables wisely and consistently. Ambiguous names will make code extremely hard to read, understand, and debug, for no good reason.
Now, technically there are just three requirements for variable names:
- You cannot use reserved words: False, class, finally, is, return, None, continue, for, lambda, try, True, def, from, nonlocal, while, and, del, global, not, with, as, elif, if, or, yield, assert, else, import, pass, break, except, in, or raise. You also cannot use operators or special symbols (+, -, /, *, %, =, <, >, @, &) or brackets and parentheses as part of variable names.
- Variable names can't start with digits.
- Variable names can't contain whitespace. Use the...