Monday, 9 September 2013

How to get the values in split python?

How to get the values in split python?

['column1:abc,def', 'column2:hij,klm', 'column3:xyz,pqr']
I want to get the values after the :. Currently if I split it takes into
account column1, column2, column3 as well, which I dont want. I want only
the values. This is similar to key-values pair in dictionary. The only
dis-similarity is that it is list of strings.
How will I split it?

No comments:

Post a Comment