a = ['pear', 'apple?orange']
or
a = ['pear', 'apple!orange']
The question mark and the quotation mark can be any non alphabetic or non numeric character (<,?,<,#)
.
If I want to remove non alphabetic characters and make the following list:
b = ['apple', 'orange']
How do I do it? do I use a.remove
or `a.split?
I'm using python 3.