← Back to Exercises
🎲

Modules & Random Fun • Exercise 94 of 112

Magic 8 Ball

Medium⭐ 35 XP🏆 Your XP: 0

🎯 Your Mission

Ask the user to type a yes-or-no question with input(). Then print a random answer from the list "Yes!", "No way!", "Maybe...", "Ask again later".

🐍 main.pyTab = 4 spaces • Ctrl+Enter = Run
▶ Output
Press ▶ Run to see what your code does!