Question #241539

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.


Expert's answer

n=input("Enter our number:")

n=str(n)

n=n[::-1]

print(n)


LATEST TUTORIALS
APPROVED BY CLIENTS