Module 8
Reverse
Reversing a sequence.
Reading backwards
You can reverse a string using the slice [::-1]. This creates a new string with the characters in reverse order.
Python
seq = "ATGC" print(seq[::-1])
→ CGTA
Your task
Reverse a sequence
- Print the reverse of ATGC using slicing.