Loading...

Group By

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

Domain
Python
Difficulty
medium

Problem

A grouping step partitions a list of words by their first character. Return a dict where each key is a starting letter and the value is the list of words that begin with it, in the order they appear.

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.