NP28 毕业生就业调查
思路:
按照要求创建列表和字典,然后分支输出即可;
代码如下:
survey_list = ['Niumei','Niu Ke Le','GURR','LOLO']
result_dict = {'Niumei':'Nowcoder','GURR':'HUAWEI'}
for i in survey_list:
if i in result_dict:
print('Hi, {}! Thank you for participating in our graduation survey!'.format(i))
else:
print('Hi, {}! Could you take part in our graduation survey?'.format(i))