building a list from another list : None : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » None »

 

building a list from another list


L1 = ['spam', 'spam', 'spam', 'A', None, 'spam', 'spam']
L2 = []
for i in L1:
    if i is not None:
        L2.append(i)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Data Type
» None