26 lines
328 B
Python
26 lines
328 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
hs = {}
|
||
|
|
||
|
print("Bitte Länder eingeben:")
|
||
|
|
||
|
while True:
|
||
|
land = input("Land: ")
|
||
|
if land == "":
|
||
|
break
|
||
|
|
||
|
stadt = input("Hauptstadt: ")
|
||
|
if stadt == "":
|
||
|
break
|
||
|
|
||
|
hs[land] = stadt
|
||
|
|
||
|
print("Nun Länder abfragen:")
|
||
|
|
||
|
while True:
|
||
|
land = input("Land: ")
|
||
|
if land == "":
|
||
|
break
|
||
|
|
||
|
print(hs[land])
|