Ad
Fundamentals

eht
tac
syas
woem

def main():
    run_again = 'y'
    while run_again == 'y' or run_again == 'yes':
        reverse_word()
        run_again = input('Would you like to try another string? (y/n) ').lower()
        print()

def reverse_word():
    print()
    to_flip = input("What do you want to read backwards? ")
    flipped = to_flip[len(to_flip)::-1]
    print(f'We had to rearange a total of {len(to_flip)} letters.')
    print(f'The output is: {flipped}\n')

main()