The Word Flipper
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
We're tidying up short text records, each held in `sentence` as words separated by single spaces. Return the same text with the order of the words flipped.
Summary
The sentence stays, the words surrender.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.