SQLDAXExcelPython
Leaderboard
Core PythonEasy10 points

Remove duplicates and keep the order

Complete unique_in_order(items) so repeats are removed and the first appearance of each value keeps its place.

How your answer is tested

After your code, this runs and its result is checked:

result = unique_in_order(["b", "a", "b", "c", "a"])
Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.