Dateiendung geändert

This commit is contained in:
msnau
2026-08-27 20:13:25 +02:00
parent 120c8a72c5
commit 2891e04afd
2 changed files with 28 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
import random
print ("Hallo! Willkommen bei MikaGPT. Was kann ich für Sie tun?")
woerter = {
"test": "bro... dies ist ein Test",
}
zwoerter = ["Oh, wirklich?", "Nuh uh"]
while True:
uinput = (input("Bitte Eingabe beginnen ").lower().split())
if "bye" in uinput:
print("MikaGPT wird nun beendet.")
break
randoma = set(uinput).isdisjoint(set(woerter))
if randoma == True:
print (random.choice(zwoerter))
for antworten in uinput:
if antworten in woerter:
print(woerter[antworten])