LearnPy Hub
← Arena
EasyRating 800

Reverse With a Stack

Push every character of the word onto a stack, then pop them all to print the word reversed.

Input

One word.

Output

The reversed word.

Sample 1

Input
stack
Output
kcats

Sample 2

Input
a
Output
a
solution.py
Output appears here
Reverse With a Stack · Python Arena problem · LearnPy Hub