← Back to challenges

Reverse and Capitalize

PythonMediumstringsfunctional_programming

Instructions

Create a function that takes a string of lowercase characters and returns that string reversed and in upper case.

Examples

reverse_capitalize("abc") ➞ "CBA"

reverse_capitalize("hellothere") ➞ "EREHTOLLEH"

reverse_capitalize("input") ➞ "TUPNI"

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Spaces Between Each Character