Skip to content

Instantly share code, notes, and snippets.

@daniel-schroeder-dev
Created July 2, 2022 19:56
Show Gist options
  • Select an option

  • Save daniel-schroeder-dev/210660cec3d7a1fb0092033e26c43bd2 to your computer and use it in GitHub Desktop.

Select an option

Save daniel-schroeder-dev/210660cec3d7a1fb0092033e26c43bd2 to your computer and use it in GitHub Desktop.
P12 - Lesson 12 - Exercise 3 Step 2
def save_search_results(search_term, artworks, books, articles, username):
...
if ___.get(___) is None:
...
# Add the search_term key to the username dict on the
# the search_results dict
search_results[username][search_term] = {
"artworks": ___,
"books": ___,
"articles": ___,
}
# Make sure this is at the end of the function now
print(search_results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment