Exercise: Sort out Duplicates

Write a program that sorts out duplicates of a (hardcoded) list, like so:

input_list = [2, 3, 1, 10, 3, 3, 1, 10, 5, 2]
output_list = []

for num in input_list:
    ... check if duplicate ...
    ... append to output_list if not ...

for num in output_list:
    print(num)

The expected program output is as follows:

$ python uniq.py
2
3
1
10
5

Dependencies

cluster_python Python Programming: From Absolute Beginner to Advanced Productivity cluster_python_basics Python: The Language Fundamentals cluster_python_exercises Exercises cluster_python_exercises_legacy Exercises (Legacy) python_basics_python_0110_blahblah Blahblah python_basics_python_0150_datatypes_overview_compound Compound Datatypes python_basics_python_0150_datatypes_overview Datatypes python_basics_python_0150_datatypes_overview_compound->python_basics_python_0150_datatypes_overview python_basics_python_0120_helloworld Hello World python_basics_python_0120_helloworld->python_basics_python_0110_blahblah python_basics_python_0140_variables Variables python_basics_python_0150_datatypes_overview->python_basics_python_0140_variables python_basics_python_0130_syntax_etc Syntax etc. python_basics_python_0130_syntax_etc->python_basics_python_0120_helloworld python_basics_python_0140_variables->python_basics_python_0130_syntax_etc python_exercises_legacy_uniq_plain Exercise: Sort out Duplicates python_exercises_legacy_uniq_plain->python_basics_python_0150_datatypes_overview_compound