Reverse the Sentence
This Program name is Reverse the Sentence. Write a Python program to Reverse the Sentence, it has two test cases
The below link contains Reverse the Sentence question, explanation and test cases
https://docs.google.com/document/d/1LuMChyEPcL8qBRrDAap5By4hclNuodwH/edit?usp=sharing&ouid=104486799211107564921&rtpof=true&sd=true
We need exact output when the code was run
S = input().split()
S.reverse()
print(' '.join(S))
Comments
Leave a comment