Advertisement
simeonshopov

Reverse string

Feb 10th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1.  
  2. while True:
  3.     cmd = input()
  4.     if cmd == 'end':
  5.         break
  6.     new_cmd = cmd[::-1]
  7.     print(f'{cmd} = {new_cmd}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement