Advertisement
Spocoman

03. Word Reverse

Jan 12th, 2022
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. word = input()
  2. reverse = ''
  3. for i in range(len(word)-1, -1, -1):
  4.     reverse += word[i]
  5. print(reverse)
  6.  
  7.  
  8.  
  9. Тарикатско решение:)
  10.  
  11. print(input()[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement