题解 | #名单中出现过的人#
名单中出现过的人
https://www.nowcoder.com/practice/d70f0bbba1bb4683a8789e86c0978f01
name_tuple = ('Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna')
print(name_tuple, 'Congratulations!' if input() in name_tuple else 'What a pity!', sep='\n')
名单中出现过的人
https://www.nowcoder.com/practice/d70f0bbba1bb4683a8789e86c0978f01
name_tuple = ('Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna')
print(name_tuple, 'Congratulations!' if input() in name_tuple else 'What a pity!', sep='\n')
相关推荐