1. Flip the number: Write a program that prompts the user to enter a three digits positive integer. The program flips and prints the integer. For example, if the user enters 582 then the program prints 285.
simple output:
N = int(input())
res = ""
for i in range(3):
res += "{}".format(N%10)
N = N // 10
print (res)
Comments
Leave a comment