Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 22 additions & 41 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"friends = {'name': 'Friends', 'genre': 'sitcom', 'no_of_seasons': 10}"
]
"source": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -212,27 +210,26 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"friends[14] = 'some value'"
]
"source": []
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'some value'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
"ename": "NameError",
"evalue": "name 'friends' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m\u001b[0m",
"\u001b[0;31mNameError\u001b[0mTraceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-dca94740e956>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mfriends\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m14\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mNameError\u001b[0m: name 'friends' is not defined"
]
}
],
"source": [
Expand Down Expand Up @@ -288,9 +285,7 @@
"output_type": "execute_result"
}
],
"source": [
"friends"
]
"source": []
},
{
"cell_type": "markdown",
Expand All @@ -311,9 +306,7 @@
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"creators = ['David Crane', 'Marta Kauffman']"
]
"source": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -463,7 +456,7 @@
"metadata": {},
"outputs": [],
"source": [
"seinfeld = {'name': 'Seinfeld', 'creators': ['Larry David', 'Jerry Seinfeld'], 'genre': 'sitcom', 'no_of_seasons': 10, 'no_of_episodes': 180}"
"}"
]
},
{
Expand All @@ -486,9 +479,7 @@
"output_type": "execute_result"
}
],
"source": [
"seinfeld"
]
"source": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -522,10 +513,7 @@
"output_type": "execute_result"
}
],
"source": [
"tv_shows = [friends, seinfeld]\n",
"tv_shows"
]
"source": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -585,9 +573,7 @@
"output_type": "execute_result"
}
],
"source": [
"tv_shows[1]['creators']"
]
"source": []
},
{
"cell_type": "markdown",
Expand All @@ -612,9 +598,7 @@
"output_type": "execute_result"
}
],
"source": [
"tv_shows[1]['creators'][1]"
]
"source": []
},
{
"cell_type": "markdown",
Expand All @@ -639,10 +623,7 @@
"output_type": "execute_result"
}
],
"source": [
"jerry = tv_shows[1]['creators'][1]\n",
"jerry"
]
"source": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -688,7 +669,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down