How to check if any item in a list is none in Python

1 Answer

0 votes
lst = ['python', 'c++', None, 128, 3.14]

my_list = ['a', 'b', None, 'c']

if None in lst:
    print('yes')
else:
    print('no')
    
    

'''
run:

yes

'''

 



answered Jun 16, 2022 by avibootz

Related questions

...