Solved: Why my for loop isn’t working right for the menus in tkinter python

Question:

out putI just want to make sure that the label and command should work properly
I also have tried this

Best Answer:

The reason it isn’t working is because you are using a nested for loop. By nesting the for loops you are essentially looping through that many times more than you want to. Try just using a single for loop that assigns the value from both lists using the single index.
I think you are trying to do this:

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com