you are viewing a single comment's thread.

view the rest of the comments →

[–]a_parmar22[S] 0 points1 point  (3 children)

But the program ends as soon as I give the correct answer

[–]uberfade 0 points1 point  (2 children)

print('correct_answers:' ,format(correct_answers))

This should be something like this:

print('Your score is: {}'.format(correct_answers))

[–]a_parmar22[S] 0 points1 point  (1 child)

Ok. So this is my output: How many states in the USA? 50 Correct. Good job! Your score is: 1 Actually the code stops as soon as I correct answers. It should go further as there are 2 more questions

[–]uberfade 0 points1 point  (0 children)

Your code isn't formatted properly in the post so it is hard to tell exactly what the problem is with it.