Posts

Showing posts with the label quiz game

Python Quiz Game

Source code of Quiz Game in Python scoreList = [] def gameKBC(n): """Answer the questions asked correctly and win money""" questionslist = ["What is the capital city of Pakistan?", "What programming language has the most user-friendly syntax?", "What is the chemical composition of water?", "Stars are mainly made of?", "How old is our universe?"] optionsList = [["Peshawar", "Karachi", "Lahore", "Islamabad"], ["python", "c++", "java", "lisp"], ["hydrogen", "oxygen", "hydrogen and oxygen", "nitrogen"], ["helium", "hydrogen", "iron", "chromium"], ["6000 years", "10,000 years", "1M years", "...