Answer to Question #306416 in Python for sruthi

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.


1
Expert's answer
2022-03-05T06:47:54-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS