Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse the words in a string python

string = 'hello people of india'
words = string.split()   #converts string into list
print(words[::-1])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #words #string #python
ADD COMMENT
Topic
Name
2+7 =