I have:
inventory1=['AA','EA','RW','Others']
I need a list that contains all elements except 'Others'. In differing lists, the position of 'Others' is not fixed. Sometimes it is last, and at other times, it is somewhere else. The list above can contain a very large number of strings.
I tried,
inventory2=inventory1
inventory2.remove('Others')
Does not work.
inventory2=inventory1.remove('Others')
doesn't even return a list.
This should be simple to do. Yet, this is not working.