Discuss / Python / lower_list

lower_list

Topic source

list_1=['Hello', 'World', 18, 'Apple', None] lower_list=[s.lower() for s in list_1 if isinstance(s,str) and s] print(lower_list)


  • 1

Reply