A

Admin • 833.24K Points
Coach

Q. Which of the following is a valid variable name in Python?

  • (A) 2name
  • (B) name_2
  • (C) name-2
  • (D) name 2
  • Correct Answer - Option(B)
  • Views: 53
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Variable names can't start with a digit or include special characters like `-` or space.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.