diff --git a/python/1_1_Notebooks.ipynb b/python/1_1_Notebooks.ipynb index 56b3da7..671d8db 100644 --- a/python/1_1_Notebooks.ipynb +++ b/python/1_1_Notebooks.ipynb @@ -140,7 +140,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 2, "metadata": { "collapsed": false }, @@ -151,7 +151,7 @@ "4" ] }, - "execution_count": 5, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } diff --git a/python/1_2_Numbers_Strings.ipynb b/python/1_2_Numbers_Strings.ipynb index 2a48f4f..46ce26d 100644 --- a/python/1_2_Numbers_Strings.ipynb +++ b/python/1_2_Numbers_Strings.ipynb @@ -48,11 +48,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "True and False # operations with booleans" ] diff --git a/python/1_3_Sequences.ipynb b/python/1_3_Sequences.ipynb index 460ab21..0d18ee6 100644 --- a/python/1_3_Sequences.ipynb +++ b/python/1_3_Sequences.ipynb @@ -569,7 +569,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "collapsed": false }, @@ -580,33 +580,66 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "range(0, 10)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "r" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "5 in r # check if a number is in a range" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "2" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "r[2] # Get a value" ] diff --git a/python/1_5_ControlFlow.ipynb b/python/1_5_ControlFlow.ipynb index 1ee82fa..d6a3161 100644 --- a/python/1_5_ControlFlow.ipynb +++ b/python/1_5_ControlFlow.ipynb @@ -68,11 +68,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "collapsed": false }, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "6" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "import random # import random before using it\n", "x = random.randrange(1, 10) # generate a random integer between [1, 10] (both included)\n",