From a1ac4f1a243cad95b63e32d55f4f69fd49d3b9ac Mon Sep 17 00:00:00 2001
From: Bianca Laker <frommer@cebitec.uni-bielefeld.de>
Date: Fri, 21 Jun 2024 11:55:32 +0200
Subject: [PATCH] Upload New File

---
 Excercises/gap_exercise2_functions.ipynb | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 Excercises/gap_exercise2_functions.ipynb

diff --git a/Excercises/gap_exercise2_functions.ipynb b/Excercises/gap_exercise2_functions.ipynb
new file mode 100644
index 0000000..e2bd289
--- /dev/null
+++ b/Excercises/gap_exercise2_functions.ipynb
@@ -0,0 +1 @@
+{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"gap_exercise2_functions.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyPNmMiCfZgG80utvjFwmIDH"},"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":["# How are functions defined?\n","    my_function(b):\n","  print(b+10)\n","\n","a=5\n","my_function(a)"],"metadata":{"id":"uoscfCSCK980"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# What is missing?\n","   concat_sequences( seq1, seq2, seq3 ):\n","  print(seq1 + seq2 + seq3)\n","\n","concat_sequences('ACGTC', 'GTCAA')"],"metadata":{"id":"VI2uTjtJMZ-L"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# correct the code such that the function delivers b+10\n","   my_function(b):\n","       (b+10)\n","\n","result = my_function(5)\n","print( result)"],"metadata":{"id":"GN89HlxMJRAQ"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# undefined number of arguments: what is needed?\n","   concat_sequences( seq ):\n","  print(seq[0] + seq[1] + seq[2])\n","\n","concat_sequences('ACGTC', 'GTCAA', 'TAGCTGC')"],"metadata":{"id":"UOsFUQSHKGXH"},"execution_count":null,"outputs":[]}]}
\ No newline at end of file
-- 
GitLab