Code:
title = 'this is a string' index = 0 result = '' while index < len(title): letter = title[index] result = result + letter index = index + 1 print (result)
More Code!!!
def backward(x): index=-1 length=(-1*len(x)) while index >= length: letter = x[index] print (letter) index = index -1 print (backward("dg4346534"))
Screenshots:
This section contains screenshots showing your program running. If the image is not too big, you will be able to just copy/paste it as using a word processor. If it’s too big, then you can either reduce it’s size or upload it and the insert it into the post.