Strings · Python
Reverse a String
Problem
Write a function that returns text reversed.
Example input
text = 'code'
Example output
'edoc'
Constraints
0 <= len(text) <= 10,000
Python workspace
Execution uses a timed child process in a temporary directory. It is development-only isolation, not a production sandbox.