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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -