How do we reverse a number with leading zeroes in number ? For ex: If input is 004, output should be 400.
I wrote below program but it works only when n
s = int(raw_input(" enter the no of tyms :")) n = 0 list, list1 = [], [] while n <= s: m = raw_input("enter the number:") n=n+1 list.append(m) print list list.reverse() print list
Reverse in one of the best lang Python.