This is just an example lab

Code:

title = ‘this is a string’
index = 0
result = ”
while index = length:
letter = x[index]
print (letter)
index = index -1
print (backward(“dg4346534”))

def backward(x):
index=-1
length=(-1*len(x))
while index >= length:
letter = x[index]
print (letter)
index = index -1
print (backward(“dg4346534”))

Leave a Reply