Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python text reverse

def reverse(text):
    reversed = ''
    for i in range(len(text)-1, -1, -1):
        reversed += text[i]
    return reversed

print("reverse({}): {}".format("abcd", reverse("abcd")))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #text #reverse
ADD COMMENT
Topic
Name
1+4 =