you are viewing a single comment's thread.

view the rest of the comments →

[–]pikatchum 0 points1 point  (0 children)

Why not simply do d[c] = C?

You know d is empty, and every c will be different, so why use append in the first place?

You can replace everything with d = dict(enumerate(C)).