In the above project tells that Quiz game by using Python code.To write the code the user give the question and options then result correct or incorrect.
In this code, The explanation in the first line is user takes the Questions(Eg: what is the smallest place in India? Options Nepal, Gujarth, Odhisha, goa) The option takes the List which uses the square brackets, Brases and, quotations and, ends the list with square brackets. Next taken the Insiallaziation is questions are score is equal to zero. Next, the using for loop is the list name using in(repeat code number of times) in list name after printing the question after another inner loop is for loop is enumerate and function and print the option next taken the user answer take the options to enter the option than print the correct the for loop to need the else statement to print the incorrect answer. After completing the chosen option then print the YOUR QUIZ COMPLETE! Your score is given then complete the code. Then show the output given below.
Submitted by S.Veera Dhana lakshmi (21ME1A5453)
Download packets of source code on Coders Packet
Comments