๐Ÿ PyQuest๐Ÿ•ต๏ธ Game: Number Detective ยท ๐Ÿ… Step 5: Detective Ranks
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Step 5: Detective Ranks ๐Ÿ…

The case works, the tries are counted โ€” now make it feel like a real game. Two finishing touches: an opening title screen, and a rank at the end based on how sharp you were. ๐Ÿ•ต๏ธ

You already know both tools; this is about pointing them at a number you made yourself:

if temperature <= 0:
    print("Rank: FROZEN")
elif temperature <= 20:
    print("Rank: Chilly")
else:
    print("Rank: Toasty")

Order matters! Python checks top to bottom and stops at the first match, so the toughest rank goes first.

Your mission

  1. Open with a title screen: a banner line ("=" * 32), a title, another banner, and a "can you crack the case?" welcome
  2. Keep the secret, the while loop and the tries counter
  3. After the win, announce the rank with a second if / elif / else:
    • 4 tries or fewer โžœ MASTER DETECTIVE ๐Ÿ•ต๏ธ
    • 8 or fewer โžœ something like Pretty Sharp Sleuth
    • otherwise โžœ Rookie in Training ๐Ÿฃ
  4. Wrap the ending in banner lines too โ€” you earned the trophy case!

Your code

Press โ–ถ Run to see what your code does!