The Type Sorter
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 mixed list, return a new list containing only values whose type is exactly int (not bool, not float). Preserve order.
Summary
A mixed list is hiding its numbers - extract them.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.