Let's say I have a list that is something like this:
lst = ['Joe C', 'Jill', 'Chad', 'Cassie C']
I want to remove the last character from each string if that character is a 'C'. At the moment I'm stuck at this impass:
no_c_list = [i[:-1] for i in lst if i[-1:] == 'C']
However, this would return a list of:
['Joe', 'Cassie']