Friday 23 May 2014

G.K. Quiz With Randomly chosen Questions!

Hi everyone.
Now I am presenting my latest creation - My G.K. Quiz Program that generates random questions from a text(.txt) file!

It uses random.randint function of python to generate a random question number and then reads that question its answer from the text file. It then prompts the user to input the answer for that questions and then matches it with the real answer and itself awards points if the answer is correct.

You can download the code and the quiz text file here:
Datafilehost

Note: You have to place the text file in the same path as the program or otherwise the program is not gonna work!





No comments:

Post a Comment