1

refactor sort.py naar ss(sort/search).py

This commit is contained in:
Ventilaar 2021-01-12 16:17:02 +01:00
parent 5c1005ab61
commit ddd88b41f0

View File

@ -56,3 +56,13 @@ def qsort(tpl, reverse=False):
return qsort(small, reverse) + same + qsort(large, reverse)
else:
return tpl
def nest_search(lst, word):
found = []
for x in lst:
if word.lower() in x[1].lower():
found.append(x)
return found