Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse string python

s = input()
i = len(s)-1
while 0 <= i:
    print(s[i],end="")
    i -= 1

#code by fawlid
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #reverse #string #python
ADD COMMENT
Topic
Name
2+7 =