Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pylings/exercises/01_variables/variables5.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
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 ===
# TODO: Extract specific characters from the DNA sequence

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 = __
Expand Down Expand Up @@ -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}")
print(f"DNA Sequence Reversed: {reversed_dna}")