while True: x = input('Enter something ') if x == "TTYL": print("Talk to you later") break <--- Key word