All MicroEvals
Complete the following Python function: ```python from typi...
Create MicroEval

Complete the following Python function: ```python from typi...

Prompt

Complete the following Python function: ```python from typing import List, Any def filter_integers(values: List[Any]) -> List[int]: """ Filter given list of any python values only for integers >>> filter_integers(['a', 3.14, 5]) [5] >>> filter_integers([1, 2, 3, 'abc', {}, []]) [1, 2, 3] """ ```

Answer guidance

Canonical solution (function body): return [x for x in values if isinstance(x, int)]

Drag to resize
Drag to resize
Drag to resize
Drag to resize