nerdexam
GIAC

GPYC · Question #15

What is the output of the following command typed in Python interactive mode? >>> print("and" in "And now for something completely different")

Sign in or unlock GPYC to reveal the answer and full explanation for question #15. The question stem and answer options stay visible for context.

Python Fundamentals & Command Line Tools

Question

What is the output of the following command typed in Python interactive mode?
print("and" in "And now for something completely different")

Options

  • ASyntaxError: invalid syntax
  • BTrue
  • CFalse

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#string membership#case sensitivity#in operator#substring search
Full GPYC Practice