From 5bfeec2eeb3aaf60f20073852c669fbd2a1b865e Mon Sep 17 00:00:00 2001 From: Subhasis Ray <--global> Date: Thu, 18 Jul 2019 08:20:26 -0400 Subject: [PATCH] Minor fixes --- Wisconsin_breast_cancer_data.ipynb | 40 +++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/Wisconsin_breast_cancer_data.ipynb b/Wisconsin_breast_cancer_data.ipynb index fc15145..f069d7b 100755 --- a/Wisconsin_breast_cancer_data.ipynb +++ b/Wisconsin_breast_cancer_data.ipynb @@ -8,7 +8,7 @@ } }, "source": [ - "# Python for data analysis" + " # Python for data analysis" ] }, { @@ -600,6 +600,15 @@ "b = \"This is also a string\"" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "len(a)" + ] + }, { "cell_type": "code", "execution_count": null, @@ -765,7 +774,7 @@ }, "outputs": [], "source": [ - "# mydict['fly'] = 'arthropod'" + "mydict['fly'] = 'arthropod'" ] }, { @@ -911,12 +920,26 @@ " print(ii) " ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "slideshow": { + "slide_type": "subslide" + } + }, + "outputs": [], + "source": [ + "for a in range(5):\n", + " print(a)" + ] + }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "slideshow": { - "slide_type": "fragment" + "slide_type": "subslide" } }, "source": [ @@ -1457,7 +1480,7 @@ "outputs": [], "source": [ "a2 = np.arange(2.0, 7.0, 1.5)\n", - "# array of numbers starting with 3.0, at increments of 2.0, less than 8.0" + "# array of numbers starting with 2.0, at increments of 1.5, less than 7.0" ] }, { @@ -2430,13 +2453,6 @@ " This is called a stack trace - when one function calls another function, which calls another function, etc., and an inner funtion encounters an error, it shows the outer most function first, and then goes deeper and deeper until the source of the error." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "code", "execution_count": null, @@ -3526,7 +3542,7 @@ } }, "source": [ - "- Ask stackoverflow" + "- Ask *stackoverflow*" ] }, {