Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 7, 2021 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/8c107d769895bde96e679e5b5b90f642 to your computer and use it in GitHub Desktop.
Save parzibyte/8c107d769895bde96e679e5b5b90f642 to your computer and use it in GitHub Desktop.
def invertir_numero(n):
numero = 0
while n != 0:
numero = 10*numero+n % 10
n //= 10
return numero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment