diff --git a/src/chapters/intro/python_intro.ipynb b/src/chapters/intro/python_intro.ipynb index df7bf02..260a8bd 100644 --- a/src/chapters/intro/python_intro.ipynb +++ b/src/chapters/intro/python_intro.ipynb @@ -181,17 +181,9 @@ }, { "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "True\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "set1 = {1, 2, 7}\n", "set2 = {2, 1, 7}\n", @@ -211,17 +203,9 @@ }, { "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "True\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "set1 = {1, 2, 7}\n", "print(2 in set1)" @@ -278,18 +262,9 @@ }, { "cell_type": "code", - "execution_count": 10, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Is 2 in list1: False\n", - "Is 8 in list1: True\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "print(\"Is 2 in list1: \", 2 in list1)\n", "print(\"Is 8 in list1: \", 8 in list1)" @@ -306,18 +281,9 @@ }, { "cell_type": "code", - "execution_count": 11, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "14\n", - "7\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "list1 = [8, 7, 14, 13]\n", "list2 = [8, 14, 7, 13]\n", @@ -352,17 +318,9 @@ }, { "cell_type": "code", - "execution_count": 13, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[1101, 2, 3, 4]\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "list1 = [1, 2, 3, 4]\n", "list1[0] = 1101\n", @@ -441,17 +399,9 @@ }, { "cell_type": "code", - "execution_count": 16, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "9\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "print(3**2)" ] @@ -465,28 +415,9 @@ }, { "cell_type": "code", - "execution_count": 17, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "i is 0\n", - "its square is 0 \n", - "\n", - "i is 1\n", - "its square is 1 \n", - "\n", - "i is 2\n", - "its square is 4 \n", - "\n", - "i is 3\n", - "its square is 9 \n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "for i in [0, 1, 2, 3]:\n", " print(\"i is \", i)\n", @@ -534,17 +465,9 @@ }, { "cell_type": "code", - "execution_count": 19, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The sum is 14\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "terms = []\n", "for i in [0, 1, 2, 3]: # TODO: modify for next task\n", @@ -574,17 +497,9 @@ }, { "cell_type": "code", - "execution_count": 20, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The sum is 20\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "terms = []\n", "for i in [1, 2, 7]:\n", @@ -702,17 +617,9 @@ }, { "cell_type": "code", - "execution_count": 26, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "14\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "our_sum = sum(i**2 for i in range(4))\n", "print(our_sum)" @@ -737,17 +644,9 @@ }, { "cell_type": "code", - "execution_count": 27, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "432\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "our_sum = sum(x**3 for x in range(3, 7))\n", "print(our_sum)" @@ -811,20 +710,9 @@ }, { "cell_type": "code", - "execution_count": 31, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Rhodes Hall\n", - "Gates Hall\n", - "Lynah Hockey Rink\n", - "Lindseth Climbing Center\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "for hamburger in route:\n", " print(hamburger)" @@ -923,31 +811,9 @@ }, { "cell_type": "code", - "execution_count": 35, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "We are at i= 0\n", - "The time to move the telescope from star i= 0 to j= 1 is 3\n", - "The time to move the telescope from star i= 0 to j= 2 is 5\n", - "The time to move the telescope from star i= 0 to j= 3 is 2\n", - "\n", - "\n", - "We are at i= 1\n", - "The time to move the telescope from star i= 1 to j= 2 is 4\n", - "The time to move the telescope from star i= 1 to j= 3 is 7\n", - "\n", - "\n", - "We are at i= 2\n", - "The time to move the telescope from star i= 2 to j= 3 is 3\n", - "\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "time = [[0, 3, 5, 2], \n", " [3, 0, 4, 7], \n", @@ -1001,18 +867,9 @@ }, { "cell_type": "code", - "execution_count": 36, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "1\n", - "7\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "print(5%2)\n", "print(117%10)\n", @@ -1028,30 +885,9 @@ }, { "cell_type": "code", - "execution_count": 37, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "number is: 1\n", - "\n", - "\n", - "number is: 2\n", - "number is even! WOOHOO!\n", - "\n", - "\n", - "number is: 3\n", - "\n", - "\n", - "number is: 4\n", - "number is even! WOOHOO!\n", - "\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "mylist = [1, 2, 3, 4]\n", "for number in mylist:\n", @@ -1072,32 +908,9 @@ }, { "cell_type": "code", - "execution_count": 38, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "number is: 1\n", - "number is odd. Boo!\n", - "\n", - "\n", - "number is: 2\n", - "number is even! WOOHOO!\n", - "\n", - "\n", - "number is: 3\n", - "number is odd. Boo!\n", - "\n", - "\n", - "number is: 4\n", - "number is even! WOOHOO!\n", - "\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "mylist = [1, 2, 3, 4]\n", "for number in mylist:\n", @@ -1121,32 +934,9 @@ }, { "cell_type": "code", - "execution_count": 39, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "number is: -2\n", - "number is negative\n", - "\n", - "\n", - "number is: 42\n", - "number is positive\n", - "\n", - "\n", - "number is: 0\n", - "number is zero\n", - "\n", - "\n", - "number is: 1101\n", - "number is positive\n", - "\n", - "\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "mylist = [-2, 42, 0, 1101]\n", "for number in mylist:\n", @@ -1173,17 +963,9 @@ }, { "cell_type": "code", - "execution_count": 40, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "3\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "myList = [1, 2, 3, 4, 5, 6]\n", "count_so_far = 0\n", @@ -1208,20 +990,9 @@ }, { "cell_type": "code", - "execution_count": 41, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "3" - ] - }, - "execution_count": 41, - "metadata": {}, - "output_type": "execute_result" - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "def count_even(input_list):\n", " count_so_far = 0\n", @@ -1244,19 +1015,9 @@ }, { "cell_type": "code", - "execution_count": 42, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "list1 has 1 even numbers\n", - "list2 has 4 even numbers\n", - "In total, list1 and list2 have 5 even numbers\n" - ] - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "list1 = [1, 1, 0, 1]\n", "list2 = [2, 4, 5, 8, 10]\n", @@ -1303,20 +1064,9 @@ }, { "cell_type": "code", - "execution_count": 44, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "1101" - ] - }, - "execution_count": 44, - "metadata": {}, - "output_type": "execute_result" - } - ], + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [ "def fun_fcn(input_list):\n", " \n", @@ -1387,22 +1137,8 @@ } ], "metadata": { - "kernelspec": { - "display_name": "Python 3 (ipykernel)", - "language": "python", - "name": "python3" - }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.9" + "name": "python" } }, "nbformat": 4, diff --git a/src/testing/gilp.ipynb b/src/testing/gilp.ipynb index 0269a8b..231475a 100755 --- a/src/testing/gilp.ipynb +++ b/src/testing/gilp.ipynb @@ -33,22 +33,8 @@ } ], "metadata": { - "kernelspec": { - "display_name": "engri_1101", - "language": "python", - "name": "engri_1101" - }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.8" + "name": "python" } }, "nbformat": 4, diff --git a/src/testing/vinal.ipynb b/src/testing/vinal.ipynb index c984b8b..d091d8a 100644 --- a/src/testing/vinal.ipynb +++ b/src/testing/vinal.ipynb @@ -129,22 +129,8 @@ } ], "metadata": { - "kernelspec": { - "display_name": "engri_1101", - "language": "python", - "name": "engri_1101" - }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.8" + "name": "python" } }, "nbformat": 4,