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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -