[Solved] Using Python to make a quiz from a text file
[ad_1] 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 … Read more