๐Ÿ PyQuest๐Ÿ•น๏ธ Challenge Arcade ยท ๐Ÿ—๏ธ Secret Code Maker
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Secret Code Maker ๐Ÿ—๏ธ

Every letter has a secret number. ord() tells you the number, chr() turns a number back into a letter:

print(ord("a"))            # โžœ 97
print(chr(98))             # โžœ b
print(chr(ord("a") + 1))   # โžœ b   (one letter along!)

See what happened there? Take a letter, get its number, add 1, turn it back into a letter. You just shifted the alphabet. ๐Ÿ”คโžก๏ธ

Do that to every letter in a word and you've built a cipher โ€” Julius Caesar used exactly this trick to send secret orders 2000 years ago. ๐Ÿ›๏ธ

To build up a new string letter by letter, start empty and glue:

secret = ""
secret = secret + "q"      # โžœ "q"

Your mission

Encode the word python by shifting every letter forward by one, then print the secret message.

Do it right and python becomes... something no one can read. ๐Ÿ•ต๏ธโ€โ™€๏ธ

Your code

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