Posts by izaque • 1 point
1 post
-
0
votes9
answers23719
viewsA: Inverting sequence (PYTHON 3)
def numReverse(n,numInv = 0): while n > 0: resto = n % 10 n = n // 10 numInv = numInv * 10 + resto print(numInv) example uses numReverse(123) numReverse(918273563)…