CBSE Class 12 Computer Science Question 48 of 120

Review of Python Basics — Question 22

Back to all questions
22
Question

Question 22

Which of the following is a valid variable name ?

  1. Student Name
  2. 3Number
  3. %Name%
  4. Block_number
Answer

Block_number

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 and must not contain special characters such as spaces, %, or symbols like $, @, etc.