Question #41696

How do you keep looping a question till the correct answer is inputted

Expert's answer

whileTrue:         #infinite loop    answer = input("Question? ").lower()    if answer == 'correct':       break       #break when answer is correct
LATEST TUTORIALS
APPROVED BY CLIENTS