Letters in the Noise
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L5
Problem
A text-cleaning step in your pipeline needs a per-letter tally of the raw strings passing through it. For a given `s`, return the letter frequencies as `[letter, count]` pairs, ordered alphabetically by letter.
Summary
Case and punctuation are distractions. Find what each letter really weighs.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.