>>> L = ['Hello', 'World', 18, 'Apple', None]
>>> [s.lower() for s in L if isinstance(s,str)==True]
['hello', 'world', 'apple']
>>>
Sign in to make a reply
Crazy丶白白
>>> L = ['Hello', 'World', 18, 'Apple', None]
>>> [s.lower() for s in L if isinstance(s,str)==True]
['hello', 'world', 'apple']
>>>