eg.
name = 'python'
length = len(name)
i = 0
for n in range(-1,(-length-1), -1):
print( name[i], '\t', name[n])
i+ = 1
I remove the i+ = 1 which generates a semantic error. I'm a beginner and am using the python tutorial provided by the python website. Basically I'm practicing forward and backward indexing.
name = 'python'
length = len(name)
i = 0
for n in range(-1,(-length-1), -1):
print( name[i], '\t', name[n])
i+ = 1
I'm expecting it to run an output of the name forward then backwards