+ 1

Given a list e.g. Wordlist=['cat', 'dog', 'cow'] solve using list comprehensions and remove duplicates.

Use of list comprehensions

27th Apr 2018, 4:45 PM
Chisekana Innocent
Chisekana Innocent - avatar
2 odpowiedzi
27th Apr 2018, 6:09 PM
TurtleShell
TurtleShell - avatar
0
words = ["cat", "dog", "cow", "cat", "dog", "cow", "cat"] print([ i for i in set(words)]) https://code.sololearn.com/ciy6Ugdr3Wy4/?ref=app
27th Apr 2018, 7:32 PM
Louis
Louis - avatar