Loading...

Type Caster

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

Domain
Python
Difficulty
easy

Problem

Raw pipeline inputs often arrive as strings that need to be cast to integers for downstream math. Attempt to cast each element to int; replace any value that fails conversion with None.

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.