I’m trying to create a program for learning vocabulary and I have a problem with nesting the for loop, namely in the following code I do not know how to make the external iterator does not iterate every element from the inner loop, but jumps to the next element. Below is an excerpt from the problematic code
pol=[‘white’, ‘black’,‘green’]
ang=[‘white’, ‘black’,‘green’]
for i in pol:
for j in ang:
type=input('Write the word < '+i+ ’ > in English: ')
if type==j:
print(‘Excellent!’)
else:
print(‘Unfortunately wrong.’)
break