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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -