Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of the requests library in Python?
Think about how you would communicate with an API.
Name one benefit of using external libraries.
Consider how they prevent you from writing code from scratch.
What library would you use to make HTTP requests in Python?
It's the first library you would import for this purpose.
True or False: JSON is a format used for transmitting data.
Think about the relationship between JSON and APIs.
Given an API endpoint that requires an authentication token, describe the steps you would take to retrieve data securely.
Remember to include error-checking methods!
Using pandas, write a function that reads a CSV file and returns the top 5 rows while handling any potential errors.
Consider what types of errors might occur when reading a file.
6 more questions in this section. Enroll free to practise them all.
Enroll free