Question #306416

input:The cat is on the mat.

output:
ehT tac si no eht .tamehT tac si no eht .tam


using split reverse the sentence without changing the order.


Expert's answer

reverse_words = [word[::-1] for word in input().split()]
print(*reverse_words)

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