Answer to Question #241539 in Python for H A

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.


1
Expert's answer
2021-09-24T04:14:28-0400

n=input("Enter our number:")

n=str(n)

n=n[::-1]

print(n)


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS