No installations needed! Write Python directly in your browser and get instant feedback with our smart validation system.
Remove all duplicate values from a list, keeping only the first occurrence of each value.
You are given a list of integers called
Remove any duplicate values in the list.
Keep only the first occurrence of each number.
Print the resulting list.
Output:
Get your code reviewed and validated to understand what you did right and where you can improve.