Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print strig backwards with loop python

string = "trick or treat"
for i in range(len(string)-1, 0-1, -1):
    print string[i]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #strig #loop #python
ADD COMMENT
Topic
Name
5+4 =