Practice question · Select all that apply
Which of these are valid Python variable names?
Hints
- Check the first character of each name before anything else.
- A name that the language already reserves cannot be reused.
Show the answer
- A. data1
- C. _count
- D. my_var
Why
Names cannot start with a digit, and 'class' is a reserved keyword.
Practise Algorithms, variables, and control flow
The app has 8 more questions on this lesson, and keeps your place in the course. Physics I is free to start.