Vidyalelo
Python · Q3

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 3

Q3

Which of the following is a valid variable name in Python?

A.
my-variable
B.
123variable
C.
_my_variable
Answer
D.
$variable

Answer: Option C

Solution

Answer: Option C
Solution:
Variable names can start with an underscore _ or a letter.