Computer Science

Which of the following is a valid variable name ?

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

Python Data Handling

1 Like

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.

Answered By

1 Like


Related Questions