QuestionQ15

Python Basics

What is the result of entering the following command in Python interactive mode?

>>> print(`and` in `And now for something completely different`)  
Explanation

Python parses the command before evaluating the membership test. The backtick usage is syntactically invalid for this expression, so execution stops with a SyntaxError.

Community Discussion

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