← Problem library

Strings · Python

Reverse a String

EasyStringsUnsolved

Problem

Write a function that returns text reversed.

Example input

text = 'code'

Example output

'edoc'

Constraints

0 <= len(text) <= 10,000

Python workspace

Reset code

Execution uses a timed child process in a temporary directory. It is development-only isolation, not a production sandbox.