SQLDAXExcelPython
Leaderboard
Core PythonEasy10 points

Reverse a string

Complete reverse_text(text) so it returns the text backwards.

How your answer is tested

After your code, this runs and its result is checked:

result = [reverse_text(t) for t in ["power", "BI", "", "a"]]
Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.