# Exercises

The exercises below are intended for work in VS Code, not within the book. You can download each exercise file (`.py`) and open it in your VS Code. A shortcut way of doing this is dragging and dropping files from the little download icon in the browser into your IDE. If the file you download from the book is `.zip`, one of the files contained within it is either a supplementary image or an answer-checker `.py` file.

Each exercise carries 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} [*] Numerics
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/01_Numerics.py>`

```{include} ../coding-exercises/chapter-05-python-basics/01_Numerics_rendered.md
```

````

````{exercise} [*] Numeric operators
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/02_Numeric_operators.py>`

```{include} ../coding-exercises/chapter-05-python-basics/02_Numeric_operators_rendered.md
```

````

````{exercise} [*] Numerics type conversion
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/03_Numeric_type_conversion.py>`

```{include} ../coding-exercises/chapter-05-python-basics/03_Numeric_type_conversion_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/04_Boolean.py>`

```{include} ../coding-exercises/chapter-05-python-basics/04_Boolean_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/05_Strings.py>`

```{include} ../coding-exercises/chapter-05-python-basics/05_Strings_rendered.md
```

````

````{exercise} [*] Print statement
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/06_Print_statements.py>`

```{include} ../coding-exercises/chapter-05-python-basics/06_Print_statements_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/07_Input.py>`

```{include} ../coding-exercises/chapter-05-python-basics/07_Input_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/08_Sequences.zip>`

```{include} ../coding-exercises/chapter-05-python-basics/08_Sequences/exercise-sequences.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/09_Lists.py>`

```{include} ../coding-exercises/chapter-05-python-basics/09_Lists_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/10_Dictionaries.py>`

```{include} ../coding-exercises/chapter-05-python-basics/10_Dictionaries_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/11_Sets.py>`

```{include} ../coding-exercises/chapter-05-python-basics/11_Sets_rendered.md
```

````

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

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/12_Organelles.py>`

```{include} ../coding-exercises/chapter-05-python-basics/12_Organelles_rendered.md
```

````

````{exercise} [**] Mutating a genome
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/13_Mutating_a_genome.py>`

```{include} ../coding-exercises/chapter-05-python-basics/13_Mutating_a_genome_rendered.md
```

````

````{exercise} [*] Watermelons (error types I)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/14_Watermelons.py>`

```{include} ../coding-exercises/chapter-05-python-basics/14_Watermelons_rendered.md
```

````

````{exercise} [*] RNA to mRNA (error types II)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/15_RNA_to_mRNA.py>`

```{include} ../coding-exercises/chapter-05-python-basics/15_RNA_to_mRNA_rendered.md
```

````

````{exercise} [**] Measurements (error types III)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/16_Measurements.py>`

```{include} ../coding-exercises/chapter-05-python-basics/16_Measurements_rendered.md
```

````

````{exercise} [**] Air bubble velocity
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/01_Air_bubble_velocity.py>`

```{include} ../coding-exercises/chapter-05-python-basics/01_Air_bubble_velocity_rendered.md
```

````

````{exercise} [**] Bacterial growth (error types IV)
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/17_Bacterial_growth.py>`

```{include} ../coding-exercises/chapter-05-python-basics/17_Bacterial_growth_rendered.md
```

````

````{exercise} [***] Atomic force microscopy (AFM) data
:class: dropdown

```{figure} ../coding-exercises/chapter-05-python-basics/18_AFM/SMCconformations.png
---
height: 150px
name: afm
---
```

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/18_AFM.zip>`

```{include} ../coding-exercises/chapter-05-python-basics/18_AFM/exercise-afm.md
```

````

````{exercise} [***] Different clock
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/19_Different_clock.zip>`

```{include} ../coding-exercises/chapter-05-python-basics/19_Different_clock/exercise-different-clock.md
```

````

````{exercise} [***] Inverting a codon dictionary
:class: dropdown

{download}`Download this exercise.<../coding-exercises/chapter-05-python-basics/20_Inverting_a_codon_dictionary.py>`

```{include} ../coding-exercises/chapter-05-python-basics/20_Inverting_a_codon_dictionary_rendered.md
```

````
