Question #328760

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


Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS