Last active
October 3, 2021 07:42
-
-
Save itisFarzin/696d93302b20f25163606c5e52535ee5 to your computer and use it in GitHub Desktop.
reverse number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reverse_number(number: int): | |
return int(str(number)[::-1]) | |
print(reverse_number(123)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment