Starting the Python shell and configuring its session
Ensure that the Python environment is set up correctly.
Run the command line.
Start the interactive Python shell by entering the following command:
> python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
You can now run Python commands and code snippets.
Load the modules required for running commands in this guide:
>>> import requests # used for sending requests to the API >>> import json # used for manipulating JSON data >>> import pprint # used for formatting the output of JSON objects received in API responses