0
Whats wrong?
def intreverse(n): rev=0 while n>0: rev=(10*rev)+n%10 n//=10 return rev print(intreverse(1234))
4 Respostas
+ 2
Look carefully at your code: the while loop ends returning 'rev'. Is this what you actually want to do?
+ 1
There's an indentation problem.
0
what will be the correct code?
0
got it corrected