Which of the following is a valid variable name in Python?
Correct answer
B. total_marks
12 views
B. total_marks
12 views
A variable name cannot start with a digit and cannot contain spaces. It can contain letters, digits, and underscores. “total_marks” is valid; “2ndValue” is not.
Asked in: Matric,FBISE
Not sure why the answer is B? Ask here and get an explanation.