Skip to content
Snippets Groups Projects
Commit a1ac4f1a authored by Bianca Laker's avatar Bianca Laker
Browse files

Upload New File

parent 61378c05
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
# Python course - Exercises Gap text
%% Cell type:markdown id: tags:
Correct the Code
%% Cell type:code id: tags:
```
# How are functions defined?
my_function(b):
print(b+10)
a=5
my_function(a)
```
%% Cell type:code id: tags:
```
# What is missing?
concat_sequences( seq1, seq2, seq3 ):
print(seq1 + seq2 + seq3)
concat_sequences('ACGTC', 'GTCAA')
```
%% Cell type:code id: tags:
```
# correct the code such that the function delivers b+10
my_function(b):
(b+10)
result = my_function(5)
print( result)
```
%% Cell type:code id: tags:
```
# undefined number of arguments: what is needed?
concat_sequences( seq ):
print(seq[0] + seq[1] + seq[2])
concat_sequences('ACGTC', 'GTCAA', 'TAGCTGC')
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment