[Solved] Using Python to make a quiz from a text file
First of all, use .strip() to remove the newline characters. The answers comparison might not always work because of them. To ask every even row you can use the modulo (%) operator to get the remainder of the current line index after dividing it by two. If the answer is correct we add 1 to … Read more