Which of the following variable names are illegal and will cause the SyntaxError exception? (Select two answers)
- for
- in
- In
Explanation: The in and for names are Python reserved words (keywords). These cannot be used as variable names. Note that the name print is not a Python reserved word and can be used as a variable name, in which case it will shadow the Python built-in function, print().
More Questions: Python Essentials 1 (PE1) Course Final Test
Please login or Register to submit your answer