Loading...

Greeting Formatter Class

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

Domain
Python
Difficulty
easy
Seniority
junior

Problem

Our code formatter needs a character reordering utility. Build a small class that stores a message and has a method to rearrange letters so all lowercase come before all uppercase, preserving the relative order within each group.

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.