print("Hallo! Ich bin ein Chatbot.") name = input("Wie heißt du?: ") print("Hallo", name) while True: text = input("> ") if text == "hallo": print("Hallo!") elif text == "wie gehts": print("Gut :)") elif text == "bye": print("Tschüss!") break else: print("Das verstehe ich nicht.")