Loading...

Word Counter

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

Domain
Python
Difficulty
easy

Problem

Our ingestion service tokenizes event log strings where each whitespace-separated word is an event tag. Count how many times each tag appears and return the result as a dictionary. The input is a single space-separated 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.