refactor sort.py naar ss(sort/search).py
This commit is contained in:
parent
5c1005ab61
commit
ddd88b41f0
@ -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
|
Reference in New Issue
Block a user