To print 3 digit number and peint the digit of the number in reverse order
x = int(input("Enter a three number: ")) d1 = x % 10 x //= 10 d2 = x % 10 x //= 10 d3 = x % 10 y = d1 * 100 + d2 * 10 + d3 print(" Your Reversed Number:", y)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments