题解 | #名单中出现过的人#
名单中出现过的人
https://www.nowcoder.com/practice/d70f0bbba1bb4683a8789e86c0978f01
name = input('')
list1 = ['Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna']
tuple1 = tuple(list1)
print(tuple1)
for i in range(len(tuple1)):
if name == tuple1[i]:
print('Congratulations!')
break
else:
continue
if name not in tuple1:
print('What a pity!')