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.
reverse_words = [word[::-1] for word in input().split()] print(*reverse_words)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment