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

  • (A) 2name
  • (B) name_2
  • (C) name-2
  • (D) name 2
πŸ’¬ Discuss
βœ… Correct Answer: (B) name_2
Explanation: Variable names can't start with a digit or include special characters like `-` or space.
Explanation by: Mr. Dubey
Variable names can't start with a digit or include special characters like `-` or space.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
82
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate