Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 212 Bytes

File metadata and controls

8 lines (7 loc) · 212 Bytes

Lambda

Finding strings with given substring in list

test_list = ['GeeksforGeeks', 'Geeky', 'Computers', 'Algorithms'] 
subs = 'Geek'
res = list(filter(lambda x: subs in x, test_list))