# Exercises

Each exercise carries the difficulty level indication:
- [*] Easy
- [**] Moderate
- [***] Advanced

The highest difficulty level is meant for students who wish to challenge themselves and/or have previous experience in programming.

`````{exercise} [*] Boolean logic
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/01_Checkpoint_enzyme.py>`

```{include} ../coding-exercises/chapter-08-flow-control/01_Checkpoint_enzyme_rendered.md
```

`````

`````{exercise} [*] Logical statements: debugging 
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/02_Logical_statements.py>`

```{include} ../coding-exercises/chapter-08-flow-control/02_Logical_statements_rendered.md
```

`````

`````{exercise} [**] Lamp: debugging
:class: dropdown

```{figure} ../chapter-01-introduction/images/Algorithm_example.svg
---
height: 300px
name: alg_lamp
---
```

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/03_Lamp.zip>`

```{include} ../coding-exercises/chapter-08-flow-control/03_Lamp/exercise-lamp.md
```

`````

`````{exercise} [*] DNA sequence and if/else/elif 
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/04_DNA_sequence.py>`

```{include} ../coding-exercises/chapter-08-flow-control/04_DNA_sequence_rendered.md
```

`````

`````{exercise} [**] DNA and RNA 
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/05_DNA_RNA.py>`

```{include} ../coding-exercises/chapter-08-flow-control/05_DNA_RNA_rendered.md
```

`````

`````{exercise} [**] Green fluorescent protein (GFP)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/06_GFP.py>`

```{include} ../coding-exercises/chapter-08-flow-control/06_GFP_rendered.md
```

`````

`````{exercise} [**] Bacterial population modelling
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/07_Bacterial_population.py>`

```{include} ../coding-exercises/chapter-08-flow-control/07_Bacterial_population_rendered.md
```

`````

`````{exercise} [**] Number guess game
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/08_Number_guess.py>`

```{include} ../coding-exercises/chapter-08-flow-control/08_Number_guess_rendered.md
```

`````

`````{exercise} [**] CRISPR implementation
:class: dropdown

```{figure} images/Cas9.png
---
height: 250px
name: crispr
---
CRISPR-Cas9 (figure by Marius Walter, [figure source](https://commons.wikimedia.org/wiki/File:GRNA-Cas9.svg), figure license [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)).
```

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/09_CRISPR.py>`

```{include} ../coding-exercises/chapter-08-flow-control/09_CRISPR_rendered.md
```

`````

`````{exercise} [**] Nanobots
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/10_Nanobots.py>`

```{include} ../coding-exercises/chapter-08-flow-control/10_Nanobots_rendered.md
```

`````

`````{exercise} [***] Roman numerals
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-08-flow-control/11_Roman_numerals.py>`

```{include} ../coding-exercises/chapter-08-flow-control/11_Roman_numerals_rendered.md
```

`````
