python - How to remove certain characters from a list? -
suppose have list
list = ['1a', 'gb', '3c', 'gd']
is there way remove second character of each character pair in list?
thus producing...
['1', 'b', 'c', 'd']
this should it:
[item[0] item in list]
Comments
Post a Comment