1. A real number with only one decimal place is entered. Write a program that reverses it. For example, if the input is 5.7, the answer should be 7.5.
n=input("Enter our number:")
n=str(n)
n=n[::-1]
print(n)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment