python–in-notin判断

# sooele



print('p' in 'python')
#是否存在
print('k' not in 'python')
#是否不存在


lst = [10,20,'python','hello']

print(10 in lst)
print(100 in lst)
print(10 not in lst)
print(100 not in lst)

for item in lst:
    print(item)