This commit is contained in:
Marege 2026-11-05 17:50:51 +01:00
parent bc6e595227
commit e2815726e8

View File

@ -15,7 +15,11 @@ def main():
while koren is not None: while koren is not None:
if koren["otazka"].endswith("?"): if koren["otazka"].endswith("?"):
print(koren["otazka"]) print(koren["otazka"])
odpoved = input().rstrip("\r") try:
odpoved = input().rstrip("\r")
except EOFError:
print("Koniec vstupu")
return
if odpoved == "a": if odpoved == "a":
koren = koren["a"] koren = koren["a"]
elif odpoved == "n": elif odpoved == "n":