Save items starting with 'S' from list l to l2 using Python

前端 未结 0 1601
梦谈多话
梦谈多话 2020-12-31 06:02

I need to save all the list items starting with \'S\' from list l to l2

l= [\'Santa Cruz\',\'Santa fe\',\'Sumbai\',\'Delhi\']
l1 = []
l1 = list(map(lambda x :         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题