Possible Duplicate:
Remove all occurences of a value from a Python list
For a list:
char = ['a', '_', '_', 'b' ]
How does one remove all instances of '_' from the list, so it ends up looking like:
char = ['a', 'b' ]
I've tried:
char.remove('_')
which gives me:
char = ['a', '_', 'b']
Why is this, and how can I get it to remove all underscores in the list?