So i know it might be silly quesion but somehow i can not figure it out. All i want to do is pause loop untill i get valid input from user and ten continue.
So lets say i have a dict:
dict= {'a':'b',
'c':'d',
'e':'f'
}
Now I would like to make a loop that will take a key and print it and wait for users input. If users input equals to key's value then move to another key and if not just repeat as long as input is incorrect.
I know that input pause a loop, but cant figure out how to wait till input is correct before continuing iteration
So loop will print 'a' and wait for users input. If input != 'b' then it will keep asking for input as long as its not a == b . If you get it right it will move to next one and print 'c' and so on
Any help would be appreciated