1def reverse_word_sentence (sentence):
2 return ' '.join(word[::-1] for word in sentence.split(" "))
3
4# Input: "Split Reverse Join"
5# Output: "tilpS esreveR nioJ"
1string = 'hello people of india'
2words = string.split() #converts string into list
3print(words[::-1])