Loading...

Reverse Field

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy

Problem

Some of our identifier columns are stored in reverse order for suffix-index lookups. Write a function that reverses a string and returns it. The input is guaranteed to be a non-None string.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.