๐Ÿ PyQuest๐Ÿ•น๏ธ Challenge Arcade ยท ๐Ÿชž Mirror Word
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Mirror Word ๐Ÿชž

Time for one of Python's coolest party tricks: reversing a string.

word = "banana"
print(word[::-1])     # โžœ ananab

That [::-1] is called a slice. The -1 means "walk through it backwards, one letter at a time." It works on any string. ๐Ÿ”„

print("stop"[::-1])   # โžœ pots

Your mission

Take the word stressed, print it backwards, and find out what programmers have always known: it's the sweetest word in the dictionary. ๐Ÿฐ

Your code

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