Reverse String
From Exercism PythonMITOriginal pagePython1 class period1 exercise7 graded tests
README.md
Reverse String
Introduction
Reversing strings (reading them from right to left, rather than from left to right) is a surprisingly common task in programming.
For example, in bioinformatics, reversing the sequence of DNA or RNA strings is often important for various analyses, such as finding complementary strands or identifying palindromic sequences that have biological significance.
Instructions
Your task is to reverse a given string.
Some examples:
- Turn
"stressed"into"desserts". - Turn
"strops"into"sports". - Turn
"racecar"into"racecar".
Open the
01folder and editmain.py. Run Tests checks it.
For teachers
Reverse String
Students solve Exercism's “Reverse String” Python exercise in CS Room, with Exercism's own tests.
- Time: 1 class period
- Tests: 7, set up for you when you import the lesson
- Practices: sequences