Fixing an issue
You know where the error occurred in this code, but what should you do to fix it? The requests module has been imported for you to use. As a developer, you'll often use the requests module to get data from websites.
Run the following code in the console to check the error:
requests.get(url="https://app.datacamp.com", content=True)
Latihan ini adalah bagian dari kursus
Intermediate Python for Developers
Latihan interaktif praktis
Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.
Mulai berolahraga