Python Modules
💡
Exercise 43

Zen of Python 20 XP Easy

Ctrl+Enter Run Ctrl+S Save

Congratulations! You've reached the final exercise of this course! 🎉

Python has a hidden Easter egg — a poem about Python's design philosophy. You can see it by importing the this module:

import this

This beautiful poem is called The Zen of Python by Tim Peters. Some highlights:

  • Beautiful is better than ugly.
  • Simple is better than complex.
  • Readability counts.
  • There should be one obvious way to do it.
  • Now is better than never.

You've learned variables, control flow, loops, lists, functions, classes, and modules — the fundamental building blocks of Python! The journey continues...

📋 Instructions
For your final exercise, create a program that demonstrates everything you've learned: 1. **Import** at least one module 2. Use a **class** with at least one method 3. Use a **function** that takes parameters 4. Use a **list** and loop through it 5. Use **if/else** logic Build whatever you want! A mini game, a quiz, a calculator — go wild! Bonus: Include `import this` at the top to print The Zen of Python. Any output is accepted — this is YOUR creation!
Combine classes, functions, lists, loops, and conditionals into one creative program. There's no wrong answer!
⚠️ Try solving it yourself first — you'll learn more!
import this
main.py
Hi! I'm Rex 👋
Output
Ready. Press ▶ Run or Ctrl+Enter.