Wednesday, October 2, 2019

python convert lists to dict

dictOfWords = { i : 5 for i in listOfStr }

dictOfWords = { test[i] : bdata.uns['celltype_colors'][i] for i in range(len(test)) }

No comments:

Post a Comment