# stacks medium

Mirror Word?

A mirror word reads the same forwards and backwards. Your stack just learned to reverse things... 🪞

You get a word. Use a stack to build its reverse, then compare. Print mirror or not a mirror.

Example:

Input: word = "level" Output: mirror

Reversing "level" with a stack gives "level" right back — it reads the same both ways.

💡 need a hint?

stk-mirror-word.py🔒 given lines are locked — write your code in between
loading...