jweinst1
7/2/2015 - 7:20 PM

Integer Reversal wRecursion.py

Integer Reversal wRecursion.py

#Reverses an integer using a recursion method.

def Reverse_Integer(n):
	place_holder = 10**(len(str(n))-1)
	if n < 10:
		return n
	return ((n%10)*place_holder) + Reverse_Integer(n//10)