Skip to content

Instantly share code, notes, and snippets.

@adrianmoses
Created August 9, 2013 01:15
Show Gist options
  • Save adrianmoses/6190379 to your computer and use it in GitHub Desktop.
Save adrianmoses/6190379 to your computer and use it in GitHub Desktop.
# one line function that reverses integers
reverse = lambda n: int(''.join(list(str(n))[::-1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment