Learn
Great work so far! Let’s practice writing some functions that work with strings.
Instructions
1.
Define a function called reverse
that takes a string text
and returns that string in reverse. For example: reverse("abcd")
should return "dcba"
.
You may not use reversed
or [::-1]
to help you with this.
You may get a string containing special characters (for example, !, @, or #).
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.