题解 | #梦想的大学#

梦想的大学

http://www.nowcoder.com/practice/f0de95ee47c844e78d70a21f7b2c7911

survey_dict = {}
while True:
    print("If you have the chance, which university do you want to go to most?")
    print("What is your name?")
    name = input()
    print("Which university do you want to go to most?")
    university = input()
    survey_dict.update({name: university})
    print("Is there anyone who hasn't been investigated yet?")
    if str(input()) == "No":
        break
    else:
        continue

for i in list(sorted(survey_dict.keys())):
    print("I'am %s. I'd like to go to " f"{survey_dict.get(i)}" " if I have the chance!" %i)

# I'm或者I am, I'am就.......
全部评论

相关推荐

牛客83700679...:简历抄别人的,然后再投,有反馈就是简历不行,没反馈就是学历不行,多投多改只要技术不差机会总会有的
点赞 评论 收藏
分享
05-22 12:44
已编辑
门头沟学院 golang
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务