Starting the Python shell and configuring its session

  1. Ensure that the Python environment is set up correctly.

  2. Run the command line.

  3. 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.

    Now, you can run Python commands and code snippets.

  4. 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