Exercise: Uniquification Of A Number Stream =========================================== .. topic:: See also * :doc:`/trainings/material/soup/python/exercises/legacy/uniq_function` * :doc:`/trainings/material/soup/python/exercises/legacy/uniq_generator` I augmented the solution with my own $0.02 - using an additional ``set`` rather that the to-be-returned ``list`` to answer the "Have I seen the current element already?" question. Also, I tried harder to confuse the guys by adding a generators to the picture. .. literalinclude:: code/prog-uniq.py :caption: :download:`Download ` :language: python