编写一个python脚本,输出你想要去的地方。
place = {}
active = True
while active:
name = input("\nWhat is your name? ")
visit = input("If you could visit one place in the world, where would you go? ")
place[name] = visit
repeat = input("Would you like to let another person respond?(yes/no) ")
if repeat == 'no':
active = False
print("\n--- Poll Results ---")
for name,visit in place.items():
print(name + " could like to visit " + visit + ".")
print()