Great work so far! Let’s practice writing some functions that work with strings.
Define a function called
reverse that takes a string
textand returns that string in reverse. For example:
reverse("abcd") should return
You may not use
[::-1] to help you with this.
You may get a string containing special characters (for example, !, @, or #).