IndexError: list index out of range(For Loop, enumerate) -


i need assign colour indexes labels fro using below code giving me index error. please suggest changes in code.

formation_colours=['#f4d03f', '#f5b041'] formation_labels = ['sh', 'ss']  formation_color_map = {} ind, label in enumerate(formation_labels):     formation_color_map[label] = formation_colours[ind] 


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -