fork download
  1. # your code goes here
  2. '''
  3. 0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  4. '''
  5. # HW Simple Task 1.17
  6. def reverseNumb(numb):
  7. listnumb = list(numb)
  8. textnumb = listnumb[2]+listnumb[1]+listnumb[0]
  9. intnumb = int(textnumb)
  10. return intnumb
  11.  
  12.  
  13. def Rever(numb):
  14. listnumb = list(numb)
  15. listnumb.reverse()
  16. return listnumb
  17.  
  18. i = "128"
  19.  
  20.  
  21.  
  22.  
  23. print(reverseNumb(i))
  24. print(Rever(i))
Success #stdin #stdout 0.09s 14100KB
stdin
Standard input is empty
stdout
821
['8', '2', '1']