diff --git a/index.ipynb b/index.ipynb index 09570b281..ffa23c0b3 100644 --- a/index.ipynb +++ b/index.ipynb @@ -70,9 +70,7 @@ "execution_count": 1, "metadata": {}, "outputs": [], - "source": [ - "friends = {'name': 'Friends', 'genre': 'sitcom', 'no_of_seasons': 10}" - ] + "source": [] }, { "cell_type": "markdown", @@ -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\u001b[0m in \u001b[0;36m\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": [ @@ -288,9 +285,7 @@ "output_type": "execute_result" } ], - "source": [ - "friends" - ] + "source": [] }, { "cell_type": "markdown", @@ -311,9 +306,7 @@ "execution_count": 11, "metadata": {}, "outputs": [], - "source": [ - "creators = ['David Crane', 'Marta Kauffman']" - ] + "source": [] }, { "cell_type": "markdown", @@ -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}" + "}" ] }, { @@ -486,9 +479,7 @@ "output_type": "execute_result" } ], - "source": [ - "seinfeld" - ] + "source": [] }, { "cell_type": "markdown", @@ -522,10 +513,7 @@ "output_type": "execute_result" } ], - "source": [ - "tv_shows = [friends, seinfeld]\n", - "tv_shows" - ] + "source": [] }, { "cell_type": "markdown", @@ -585,9 +573,7 @@ "output_type": "execute_result" } ], - "source": [ - "tv_shows[1]['creators']" - ] + "source": [] }, { "cell_type": "markdown", @@ -612,9 +598,7 @@ "output_type": "execute_result" } ], - "source": [ - "tv_shows[1]['creators'][1]" - ] + "source": [] }, { "cell_type": "markdown", @@ -639,10 +623,7 @@ "output_type": "execute_result" } ], - "source": [ - "jerry = tv_shows[1]['creators'][1]\n", - "jerry" - ] + "source": [] }, { "cell_type": "markdown", @@ -688,7 +669,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.5" + "version": "3.6.9" } }, "nbformat": 4,