CBSE Class 11 Informatics Practices Question 6 of 40

Practice Paper — Question 6

Back to all questions
6
Question

Question 6

Which of the following is a valid variable name?

  1. 1name
  2. na*me
  3. name
  4. name one
Answer

name

Reason — A valid variable name in Python can only contain letters (a-z, A-Z), digits (0-9), and underscores (_). It cannot start with a digit, contain special characters like *, or include spaces. Therefore, "name" is a valid variable name.