Which of the following cannot be used as a valid identifier in Python?
Show answerHide answer
Correct answer: (A) 1st Name
Explanation
Python identifiers cannot start with a digit or contain spaces, so "1st Name" is invalid.
Correct answer: (A) 1st Name
Explanation
Python identifiers cannot start with a digit or contain spaces, so "1st Name" is invalid.
This is question 73 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.