Skip to content

Instantly share code, notes, and snippets.

@raphaelfruneaux
Created November 26, 2019 21:34
Show Gist options
  • Save raphaelfruneaux/37439e3d37f95c5aee382c4648eb0375 to your computer and use it in GitHub Desktop.
Save raphaelfruneaux/37439e3d37f95c5aee382c4648eb0375 to your computer and use it in GitHub Desktop.
def invert_int(n):
if not n:
return
print(int(str(n)[::-1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment