From b1d2c20ffcd80d395c7973a305772c7082a1bd8a Mon Sep 17 00:00:00 2001 From: Michal Petrik Date: Mon, 11 Apr 2022 11:27:47 +0200 Subject: [PATCH] Update final-exercise.md --- .../02-introduction-to-python/190-APIs/final-exercise.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/02-introduction-to-python/190-APIs/final-exercise.md b/website/content/02-introduction-to-python/190-APIs/final-exercise.md index ac47c18..8831697 100644 --- a/website/content/02-introduction-to-python/190-APIs/final-exercise.md +++ b/website/content/02-introduction-to-python/190-APIs/final-exercise.md @@ -170,7 +170,7 @@ def repos_with_most_stars(languages): {{%/expand%}} -Finally, let's add a `languages` list to limit which languages we're interested in, and pass it to `repos_with_most_stars()`. Now, when we call our `repos_with_most_stars()` function with `["python", "javascript", "ruby"]` as our languages, the `create_query()` function will output create a query string that looks like `q=stars:>50000+language:python+language:javascript+language:ruby+&sort=stars&order=desc`. Because this is a simple GET request, this gets appended to our `gh_api_repo_search_url`, so our actual request URL is `https://api.github.com/search/repositories?q=stars:>50000+language:python+language:javascript+language:ruby+&sort=stars&order=desc`. +Finally, let's add a `languages` list to limit which languages we're interested in, and pass it to `repos_with_most_stars()`. Now, when we call our `repos_with_most_stars()` function with `["python", "javascript", "ruby"]` as our languages, the `create_query()` function will output a query string that looks like `q=stars:>50000+language:python+language:javascript+language:ruby+&sort=stars&order=desc`. Because this is a simple GET request, this gets appended to our `gh_api_repo_search_url`, so our actual request URL is `https://api.github.com/search/repositories?q=stars:>50000+language:python+language:javascript+language:ruby+&sort=stars&order=desc`. Run your program.