Open swindell4 opened 2 weeks ago
@swindell4
Liked the search, made some sugestions.
results = [] # This list will contain all the matching results to the data within the search field. search = search_field # This will capture the current data in the search field.
for data in database: # This loop will iterate through the contents of the database.
if re.search(search, data): # Check if the current database element matches the search field data.
results.append(data) # Add the matching data to the results list.
return results
Attach the search algorithm to the given checklist box, search field, and button.