Practice mode Python

Which of the following is NOT a reserved keyword in Python 3?

Correct answer B. print

Explanation

In Python 3 print is an ordinary built-in function, not a keyword; it was a statement in Python 2. nonlocal, lambda and None are all reserved keywords and cannot be used as variable names. You can list them with the keyword module, using keyword.kwlist.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.