Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. num_array = []
  2. num = input()
  3. print()
  4. n = input()[::-1]
  5. for i in num:
  6.     if not n.isnumeric():
  7.         raise "You failed to enter an integer"
  8.     num_array.append(int(n))
  9. print(''.join(map(str, reversed(num_array))))
  10.  
  11.  
  12. Input
  13.  
  14. 4
  15. 1210
  16.  
  17. Output
  18.  
  19. 121
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement