L1 = ['Hello', 'World', 18, 'Apple', None]
L2=[L.lower() for L in L1 if isinstance(L,str)]
Sign in to make a reply
燕喜泥润
L1 = ['Hello', 'World', 18, 'Apple', None]
L2=[L.lower() for L in L1 if isinstance(L,str)]