The Letter Census
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
Given a string, return a dict with keys 'vowels' (count of a, e, i, o, u, case-insensitive) and 'consonants' (count of other alphabetic characters). Non-alphabetic chars are ignored.
Summary
Every crowd has its share of talkers and quiet ones.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.