KnowledgeBoat Logo
|
LoginJOIN NOW

Informatics Practices

Which of the following is a valid variable name?

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

Python Funda

1 Like

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.

Answered By

3 Likes


Related Questions