vendredi 15 juillet 2016

How to split string and map each character into dictionary [duplicate]


This question already has an answer here:

Suppose i have a string like 'value=sahi' and i want it like {1:s,2:a,3:h,4:i} is there any function to do like this.


Aucun commentaire:

Enregistrer un commentaire