Answer to Question #328760 in Python for Shubham Tiwari

Question #328760

Write a program to reverse a string that is passed by the user.


1
Expert's answer
2022-04-14T08:04:38-0400
s = input()
r = ''
for ch in s:
    r = ch + r
print(r)

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