Requests is a Python library to easily send HTTP requests.
Use the pip show requests
command to test if the Python requests module is installed. If not, use pip install requests
to install it.
Use the documentation (pypi.org/project/requests) to write a very simple Python program that sends a GET request to "https://api.chucknorris.io/jokes/random". If the status code of the response is 200 (= "OK"), it prints the text received, otherwise it prints the HTTP response code.