Easy
Remove an Item
Read a list of words and a word to remove (it is in the list). Remove its first occurrence with
remove() and print the list.Input
Two lines.
Output
A Python list.
Sample 1
Input
cat dog fish dog
Output
['cat', 'fish']
Sample 2
Input
a b a a
Output
['b', 'a']
Output appears here