QuestionQ249

VerifiedComputer Programming and Python Fundamentals

Which of the following variable names are invalid and will raise a SyntaxError?

Choose two
Explanation

Python keywords are reserved by the language grammar and cannot be used as identifiers. for and in are reserved keywords; keyword matching is case-sensitive, so In is valid. print is not a reserved keyword in Python 3.

Community Discussion

No comments yet. Be the first to start the discussion!