Given a list
['R2', 'Y1-1', 'Y1-2', 'Y2-1', 'Y2-2', 'r']
i wish to remove all non-alphabetical characters and return the list in the form
['R', 'Y', 'Y', 'Y', 'Y', 'r']
Is there a way of doing this in python 3.6.3?
Given a list
['R2', 'Y1-1', 'Y1-2', 'Y2-1', 'Y2-2', 'r']
i wish to remove all non-alphabetical characters and return the list in the form
['R', 'Y', 'Y', 'Y', 'Y', 'r']
Is there a way of doing this in python 3.6.3?