Step 1 · Read and run
Names that mean something
Python's rules for a variable name:
- letters, digits and the underscore
_only — no spaces - it can't start with a digit
- it can't be a word Python already uses, like
print
Within the rules, pick names that say what they hold. x runs fine, but first_name tells the reader everything. Python programmers join words with underscores — it's called snake_case.
Run the program to carry on.