All MicroEvals
Complete the following Python function: ```python def uniqu...
Create MicroEval

Complete the following Python function: ```python def uniqu...

Prompt

Complete the following Python function: ```python def unique(l: list): """Return sorted unique elements in a list >>> unique([5, 3, 5, 2, 3, 3, 9, 0, 123]) [0, 2, 3, 5, 9, 123] """ ```

Answer guidance

Canonical solution (function body): return sorted(list(set(l)))

Drag to resize
Drag to resize