1## initializing the string
2string = "I am a python programmer"
3## splitting the string on space
4words = string.split()
5## reversing the words using reversed() function
6words = list(reversed(words))
7## joining the words and printing
8print(" ".join(words))