Listing out names of Python dictionary instances
<p>I collected public course data from Udemy and put it all in a json file. Each course has an identifier number under which all the data is stored. I can perfectly list out any details I want, except for these identifier numbers.</p>

<p>How can I list out these numbers themselves? Thanks.</p>

<pre><code>{
    "153318":
    {
        "lectures data": "31 lectures, 5 hours video",
        "instructor work": "Academy Of Technical Courses, Grow Your Skills Today",
        "title": "Oracle Applications R12 Order Management and Pricing",
        "promotional price": "$19",
        "price": "$20",
        "link": "https://www.udemy.com/oracle-applications-r12-order-management-and-pricing/",
        "instructor": "Parallel Branch Inc"
    },
    "616990":
    {
        "lectures data": "24 lectures, 1.5 hours video",
        "instructor work": "Learning Sans Location",
        "title": "Cloud Computing Development Essentials",
        "promotional price": "$19",
        "price": "$20",
        "link": "https://www.udemy.com/cloud-computing-development-essentials/",
        "instructor": "Destin Learning"
    }
}
</code></pre>

<p>You want the <code>keys</code> of that dictionnary.</p>

<pre><code>import json
with open('course.json') as json_file:
    course=json.load(json_file)

print course.keys()
</code></pre>

<p><br>giving : 
<code>[u'616990', u'153318']</code></p>

python json