Answers for "how to reverse strings in python"

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
1

reverse the string in python

g = "My name is IRONMAN" #reverse the string
print(str(g[::-1]))
Posted by: Guest on December-21-2020

Code answers related to "how to reverse strings in python"

Python Answers by Framework

Browse Popular Code Answers by Language