Fix6u8
This commit is contained in:
parent
bc6e595227
commit
e2815726e8
@ -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":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user