L1 = ['Hello', 'World', 18, 'Apple', None]
L2 = [n.lower() if isinstance(n,str) else n for n in L1]
print(L2)
Sign in to make a reply
Ashen One
L1 = ['Hello', 'World', 18, 'Apple', None]
L2 = [n.lower() if isinstance(n,str) else n for n in L1]
print(L2)