What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-14 05:39:10
reverse a number in python
# Python string/number reverser example_number = 12143 example_string = "Hello there" def reverse(thing): thing = str(thing) # convert it to a string, just in case it was a number list_of_chars = [char for char in thing] reversed_l... Add solution