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.
    >>>
    
  4. Load the modules required for running commands in this guide:

    >>> import requests  # Will be used for sending requests to the API.
    >>> import hashlib   # Will be used for calculating hash values.
    >>> import os.path   # Will be used for path-related operations.
    >>> import pprint    # Will be used for formatting the output of JSON text received in API responses.
    >>> import json      # Will be used for converting data into JSON text