MyStudyPals.com MyStudyPals.com
  • Login
  • Feed

Resources

  • 📰
    Latest School News
  • 📚
    Scholarships
  • 🎓
    JAMB Syllabus
  • 📝
    Jamb Brochure

Information

  • 🔗
    Contact US
  • 🔗
    Privacy Policy
  • 🔗
    Terms and Conditions
  • 🔗
    About US

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

  • 📑 Past Questions
  • ⌛ Take CBT exam
  • 📟 Referral
  • 🎫 Support
  • 📢 Earnings
Computer Studies JAMB 2023

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

  • my_variable$
  • my_variable checkmark
  • my-variable
  • 1my_variable

The correct answer is: B

Explanation

Variable names in Python must start with a letter or underscore, and can only contain letters, numbers, and underscores. The other options are invalid because they either start with a number (option C) or contain a special character (option D).

Previous Question Next Question

Leave A Comment

© 2025 MyStudyPals.com