Advertisement
horozov86

Reverse Strings

May 3rd, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. stack = list(input())
  2.  
  3. while len(stack) > 0:
  4.     element = stack.pop()
  5.    
  6.     print(element, end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement