def get_python_version():
    """
    A convenience function to get the python version used to run this
    tutorial. This ensures that the conda environment is created with an
    available version of python.

    """
    import platform
    versions = {'2': '2.7.15', '3': '3.7.3'}
    return versions[platform.python_version_tuple()[0]]
