while True: s = input('Bir yazı giriniz:') if s == 'quit': break print(s[::-1])