diff --git a/pylings/exercises/01_variables/variables5.py b/pylings/exercises/01_variables/variables5.py index a311db7..3b7808d 100644 --- a/pylings/exercises/01_variables/variables5.py +++ b/pylings/exercises/01_variables/variables5.py @@ -5,6 +5,7 @@ Uncomment and complete each section to pass all tests. In DNA each letter is defined as a `base`, we can interchange `base` with `index` + """ # === DNA STRING INDEXING === @@ -12,8 +13,11 @@ dna_sequence = "AGCTTAGGCTA" +# EXAMPLE: To get the seventh base of the dna_sequence +# seventh_base = dna_sequence[8] + # TODO: Extract the first base of dna_sequence -first_base = __ +first_base = __ # TODO: Extract the last base of dna_sequence last_base = __ @@ -59,4 +63,4 @@ print(f"Middle base:{middle_bases}") print(f"Last Five base:{last_five_bases}") -print(f"DNA Sequence Reversed: {reversed_dna}") \ No newline at end of file +print(f"DNA Sequence Reversed: {reversed_dna}")