题解 | #名单中出现过的人#
名单中出现过的人
https://www.nowcoder.com/practice/d70f0bbba1bb4683a8789e86c0978f01
import sys a=('Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna') b=input() if b in a: print(a) print('Congratulations!') else: print(a) print('What a pity!')