def main():
    quit = False
    while not quit:
        original = input('Enter a word (Q to quit): ')
        backwards = ''
        for i in reversed(original):
            backwards = backwards + i
        if original.upper() == 'Q':
            quit = True
        else:
            print(backwards)


main()

23d5f508f4d25a6b7f1cd0ef2150ebddbbbf8ee5
<mask token>

def main():
    quit = False
    while not quit:
        original = input('Enter a word (Q to quit): ')
        backwards = ''
        for i in reversed(original):
            backwards = backwards + i
        if original.upper() == 'Q':
            quit = True
        else:
            print(backwards)


<mask token>

def main():
    quit = False
    while not quit:
        original = input('Enter a word (Q to quit): ')
        backwards = ''
        for i in reversed(original):
            backwards = backwards + i
        if original.upper() == 'Q':
            quit = True
        else:
            print(backwards)


main()
