L = ['Hello', 'World', 18, 'Apple', None]
[x.lower() for x in L if isinstance(x,str) is True]
Sign in to make a reply
子钺-
L = ['Hello', 'World', 18, 'Apple', None]
[x.lower() for x in L if isinstance(x,str) is True]