+ 1
Given a list e.g. Wordlist=['cat', 'dog', 'cow'] solve using list comprehensions and remove duplicates.
Use of list comprehensions
2 odpowiedzi
+ 1
0
words = ["cat", "dog", "cow", "cat", "dog", "cow", "cat"]
print([ i for i in set(words)])
https://code.sololearn.com/ciy6Ugdr3Wy4/?ref=app