Loading...

The Odd Digits

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

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

A data parsing tool needs to extract only the odd single digits from mixed alphanumeric strings. Given a string that may contain letters, digits, and symbols, return a new string containing only the digit characters whose numeric value is odd.

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.