Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reverse a string in python

# in order to make a string reversed in python 
# you have to use the slicing as following

string = "racecar"
print(string[::-1])
 
PREVIOUS NEXT
Tagged: #reverse #string #python
ADD COMMENT
Topic
Name
7+4 =