From ed858ab8265e7092eed905f6706ccce4a0ae8b59 Mon Sep 17 00:00:00 2001 From: Bianca Laker <frommer@cebitec.uni-bielefeld.de> Date: Fri, 21 Jun 2024 11:55:51 +0200 Subject: [PATCH] Upload New File --- Excercises/gap_exercise3_if_else.ipynb | 1 + 1 file changed, 1 insertion(+) create mode 100644 Excercises/gap_exercise3_if_else.ipynb diff --git a/Excercises/gap_exercise3_if_else.ipynb b/Excercises/gap_exercise3_if_else.ipynb new file mode 100644 index 0000000..992801c --- /dev/null +++ b/Excercises/gap_exercise3_if_else.ipynb @@ -0,0 +1 @@ +{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"gap_exercise3_if_else.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyNhlv7wY42fK2OkTGqTWan3"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["# Python course - Exercises Gap text"],"metadata":{"id":"kH0p2uT-sQ6y"}},{"cell_type":"markdown","source":["Correct the Code"],"metadata":{"id":"uW9SoYEyrlRL"}},{"cell_type":"code","source":["# complete the statement for b larger than a\n","a = 5\n","b = 10\n","\n"," b a:\n"," print('b larger a')"],"metadata":{"id":"uoscfCSCK980"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# complete the statements\n","a = 5\n","b = 10\n","c = 5\n","\n"," (a b) (a c):\n"," print('a smaller b, but a equals c')"],"metadata":{"id":"9DGKzqxWdABE"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# complete the statements\n","a = 5\n","b = 10\n","c = 5\n","\n"," a c:\n"," print('a smaller or equal c')\n"," a b:\n"," print('a larger or equal b')"],"metadata":{"id":"3ipcaNRCdv9S"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# complete the statements\n","a = 5\n","b = 10\n","c = 5\n","\n"," a c:\n"," print('a not c')\n"," a b:\n"," print('a equals b')\n","\n"," print('None of the above is true')"],"metadata":{"id":"w9QBlM8Hel_u"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# complete the statements\n","a = 5\n","b = 10\n","c = 5\n","\n"," (a c) (b c):\n"," print('a not c OR b not c')\n"," \n"," print('None of the above is true')"],"metadata":{"id":"5KfDsRHLfW7k"},"execution_count":null,"outputs":[]}]} \ No newline at end of file -- GitLab