← Back to challenges

The Reverser!

PythonHardstringsformattinglanguage_fundamentals

Instructions

The "Reverser" takes a string as input and returns that string in reverse order, with the opposite case.

Examples

reverse("Hello World") ➞ "DLROw OLLEh"

reverse("ReVeRsE") ➞ "eSrEvEr"

reverse("Radar") ➞ "RADAr"

Notes

There will be no punctuation in any of the test cases.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Unpacking Lists