Answers for "reverse string python function"

28

reverse string in python

'hello world'[::-1]
'dlrow olleh'
Posted by: Guest on December-06-2019
0

reverse the words in a string python

string = 'hello people of india'
words = string.split()   #converts string into list
print(words[::-1])
Posted by: Guest on May-18-2021

Code answers related to "reverse string python function"

Python Answers by Framework

Browse Popular Code Answers by Language