Skip to content

Instantly share code, notes, and snippets.

View theBikz's full-sized avatar
🏠
Working from home

Bipin Kuriakose theBikz

🏠
Working from home
  • UST
  • India - Kerala - Kottayam
View GitHub Profile
"""Write a function intreverse(n) that takes as input a positive integer n and returns the integer obtained by reversing the digits in n.
Here are some examples of how your function should work.
>>> intreverse(783)
387
>>> intreverse(242789)
987242
>>> intreverse(3)
3