Mercurial > louis > peeves
view stacks_lists/remove_list_duplicates/solution.py @ 2:6bebf4b42ebc
Correctly format the stacks and lists exercices
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Mon, 01 Jul 2013 23:25:58 -0700 |
parents | |
children |
line wrap: on
line source
#!/usr/bin/env python # Not bad, but it will change the order of the elements in the list: def remove_list_duplicates(l): return list(set(l))