string = 'hello people of india' words = string.split() #converts string into list print(words[::-1])