Nov-18-2018, 02:56 AM
(Nov-18-2018, 02:37 AM)ichabod801 Wrote: Well, where did you put it in the code? And did you fix the issue with the two loops you already have? For example, if you just put that within the for loop, and answer them correctly, it will keep asking the first three questions in order forever, because count is never updated, so the while count loop keeps repeating the for i loop. I mean what is count supposed to do? Do you want the game to end after three wrong answers? If so, you need to remove the while count loop, and add an if count >= 3: break
to the for i loop.
Hi, Put the code inside the while statement... But question still repeart. Count is the attempt value for player, in this case if it falls to the wrong question.. program should give the player anoter attempt to answer the same question.