1. Home
  2. Data Science
  3. Python
  4. Which command prints the Zen of Python?

Added 25 Nov 2026

Which command prints the Zen of Python?

  1. import zen
  2. import this Correct answer
  3. from python import zen
  4. print(zen)

Correct answer

B. import this

5 views

MCQSEXAM

Explanation

Running import this displays the Zen of Python by Tim Peters.

Reference

Asked in: Python Interview Basics

https://docs.python.org/3/tutorial/introduction.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs