Skip to content

Commit fbcf8a8

Browse files
committedJul 27, 2024
update Quiz_Game.py
1 parent 9098290 commit fbcf8a8

File tree

1 file changed

+282
-139
lines changed

1 file changed

+282
-139
lines changed
 

‎Quiz-Game/Quiz_Game.py

+282-139
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
import random
66

7+
78
def display_question(question, options):
89
print(question)
910
for i, option in enumerate(options, 1):
1011
print(f"{i}. {option}")
1112

13+
1214
def get_answer():
1315
try:
1416
answer = int(input("Enter the number of your choice: "))
@@ -17,167 +19,307 @@ def get_answer():
1719
print("Invalid input. Please enter a number.")
1820
return get_answer()
1921

22+
2023
def quiz_game():
2124
questions = [
2225
{"question": "What is the capital of France?", "options": ["Berlin", "Madrid", "Paris", "Rome"], "answer": 3},
23-
{"question": "Which planet is known as the Red Planet?", "options": ["Earth", "Mars", "Jupiter", "Saturn"], "answer": 2},
24-
{"question": "What is the largest ocean on Earth?", "options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
25-
{"question": "Who wrote 'To Kill a Mockingbird'?", "options": ["Harper Lee", "Mark Twain", "Ernest Hemingway", "F. Scott Fitzgerald"], "answer": 1},
26+
{"question": "Which planet is known as the Red Planet?", "options": ["Earth", "Mars", "Jupiter", "Saturn"],
27+
"answer": 2},
28+
{"question": "What is the largest ocean on Earth?",
29+
"options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
30+
{"question": "Who wrote 'To Kill a Mockingbird'?",
31+
"options": ["Harper Lee", "Mark Twain", "Ernest Hemingway", "F. Scott Fitzgerald"], "answer": 1},
2632
{"question": "What is the chemical symbol for Gold?", "options": ["Au", "Ag", "Pb", "Fe"], "answer": 1},
2733
{"question": "How many continents are there on Earth?", "options": ["5", "6", "7", "8"], "answer": 3},
28-
{"question": "What is the speed of light in a vacuum?", "options": ["300,000 km/s", "150,000 km/s", "100,000 km/s", "200,000 km/s"], "answer": 1},
29-
{"question": "Who painted the Mona Lisa?", "options": ["Leonardo da Vinci", "Vincent van Gogh", "Pablo Picasso", "Claude Monet"], "answer": 1},
30-
{"question": "What is the hardest natural substance on Earth?", "options": ["Gold", "Iron", "Diamond", "Platinum"], "answer": 3},
34+
{"question": "What is the speed of light in a vacuum?",
35+
"options": ["300,000 km/s", "150,000 km/s", "100,000 km/s", "200,000 km/s"], "answer": 1},
36+
{"question": "Who painted the Mona Lisa?",
37+
"options": ["Leonardo da Vinci", "Vincent van Gogh", "Pablo Picasso", "Claude Monet"], "answer": 1},
38+
{"question": "What is the hardest natural substance on Earth?",
39+
"options": ["Gold", "Iron", "Diamond", "Platinum"], "answer": 3},
3140
{"question": "What is the smallest prime number?", "options": ["1", "2", "3", "5"], "answer": 2},
3241
{"question": "In which year did the Titanic sink?", "options": ["1900", "1912", "1920", "1930"], "answer": 2},
33-
{"question": "What is the largest mammal in the world?", "options": ["Elephant", "Blue Whale", "Giraffe", "Shark"], "answer": 2},
34-
{"question": "Which element has the atomic number 1?", "options": ["Helium", "Hydrogen", "Lithium", "Beryllium"], "answer": 2},
42+
{"question": "What is the largest mammal in the world?",
43+
"options": ["Elephant", "Blue Whale", "Giraffe", "Shark"], "answer": 2},
44+
{"question": "Which element has the atomic number 1?",
45+
"options": ["Helium", "Hydrogen", "Lithium", "Beryllium"], "answer": 2},
3546
{"question": "What is the capital of Japan?", "options": ["Beijing", "Seoul", "Tokyo", "Bangkok"], "answer": 3},
36-
{"question": "Which planet is closest to the Sun?", "options": ["Venus", "Earth", "Mercury", "Mars"], "answer": 3},
37-
{"question": "What is the largest desert in the world?", "options": ["Sahara", "Gobi", "Kalahari", "Antarctic"], "answer": 4},
47+
{"question": "Which planet is closest to the Sun?", "options": ["Venus", "Earth", "Mercury", "Mars"],
48+
"answer": 3},
49+
{"question": "What is the largest desert in the world?", "options": ["Sahara", "Gobi", "Kalahari", "Antarctic"],
50+
"answer": 4},
3851
{"question": "What is the chemical formula for water?", "options": ["H2O", "CO2", "NaCl", "O2"], "answer": 1},
39-
{"question": "Who is known as the 'Father of Computers'?", "options": ["Charles Babbage", "Alan Turing", "Ada Lovelace", "John von Neumann"], "answer": 1},
40-
{"question": "What is the largest organ in the human body?", "options": ["Heart", "Liver", "Skin", "Lungs"], "answer": 3},
41-
{"question": "Which country is known as the Land of the Rising Sun?", "options": ["China", "Japan", "South Korea", "Thailand"], "answer": 2},
42-
{"question": "What is the smallest country in the world by land area?", "options": ["Monaco", "San Marino", "Vatican City", "Liechtenstein"], "answer": 3},
43-
{"question": "What is the name of the longest river in the world?", "options": ["Amazon", "Nile", "Yangtze", "Mississippi"], "answer": 2},
52+
{"question": "Who is known as the 'Father of Computers'?",
53+
"options": ["Charles Babbage", "Alan Turing", "Ada Lovelace", "John von Neumann"], "answer": 1},
54+
{"question": "What is the largest organ in the human body?", "options": ["Heart", "Liver", "Skin", "Lungs"],
55+
"answer": 3},
56+
{"question": "Which country is known as the Land of the Rising Sun?",
57+
"options": ["China", "Japan", "South Korea", "Thailand"], "answer": 2},
58+
{"question": "What is the smallest country in the world by land area?",
59+
"options": ["Monaco", "San Marino", "Vatican City", "Liechtenstein"], "answer": 3},
60+
{"question": "What is the name of the longest river in the world?",
61+
"options": ["Amazon", "Nile", "Yangtze", "Mississippi"], "answer": 2},
4462
{"question": "What is the chemical symbol for Silver?", "options": ["Au", "Ag", "Pb", "Fe"], "answer": 2},
4563
{"question": "What year did World War I begin?", "options": ["1912", "1914", "1916", "1918"], "answer": 2},
46-
{"question": "Who discovered penicillin?", "options": ["Marie Curie", "Alexander Fleming", "Louis Pasteur", "Isaac Newton"], "answer": 2},
47-
{"question": "What is the main ingredient in guacamole?", "options": ["Tomato", "Avocado", "Onion", "Pepper"], "answer": 2},
48-
{"question": "Which planet is known for its rings?", "options": ["Earth", "Mars", "Saturn", "Uranus"], "answer": 3},
49-
{"question": "What is the largest island in the world?", "options": ["New Guinea", "Greenland", "Borneo", "Madagascar"], "answer": 2},
50-
{"question": "What is the name of the galaxy that contains our solar system?", "options": ["Andromeda", "Milky Way", "Triangulum", "Sombrero"], "answer": 2},
51-
{"question": "Who wrote 'Pride and Prejudice'?", "options": ["Jane Austen", "Emily Brontë", "Charlotte Brontë", "Mary Shelley"], "answer": 1},
52-
{"question": "What is the tallest mountain in the world?", "options": ["K2", "Kangchenjunga", "Everest", "Makalu"], "answer": 3},
53-
{"question": "Which element has the chemical symbol 'O'?", "options": ["Oxygen", "Osmium", "Opium", "Oganesson"], "answer": 1},
54-
{"question": "What is the longest-running Broadway show?", "options": ["The Phantom of the Opera", "Cats", "Les Misérables", "Chicago"], "answer": 1},
55-
{"question": "In which year did the Berlin Wall fall?", "options": ["1987", "1988", "1989", "1990"], "answer": 3},
56-
{"question": "What is the largest species of shark?", "options": ["Great White Shark", "Hammerhead Shark", "Whale Shark", "Tiger Shark"], "answer": 3},
57-
{"question": "Which is the only U.S. state to begin with the letter 'A'?", "options": ["Alaska", "Arizona", "Arkansas", "Alabama"], "answer": 1},
58-
{"question": "Who was the first person to step on the moon?", "options": ["Buzz Aldrin", "Neil Armstrong", "Yuri Gagarin", "Michael Collins"], "answer": 2},
59-
{"question": "What is the hardest natural substance found on Earth?", "options": ["Gold", "Iron", "Diamond", "Quartz"], "answer": 3},
60-
{"question": "Which famous scientist developed the theory of relativity?", "options": ["Isaac Newton", "Albert Einstein", "Galileo Galilei", "Niels Bohr"], "answer": 2},
61-
{"question": "What is the smallest planet in our solar system?", "options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
62-
{"question": "What is the primary language spoken in Brazil?", "options": ["Spanish", "Portuguese", "English", "French"], "answer": 2},
63-
{"question": "What type of animal is the largest living land carnivore?", "options": ["Lion", "Elephant", "Polar Bear", "Grizzly Bear"], "answer": 3},
64-
{"question": "What is the main function of red blood cells?", "options": ["Fight infection", "Carry oxygen", "Aid digestion", "Regulate temperature"], "answer": 2},
65-
{"question": "Who was the first female Prime Minister of the United Kingdom?", "options": ["Theresa May", "Margaret Thatcher", "Priti Patel", "Emily Thornberry"], "answer": 2},
66-
{"question": "Which famous physicist is known for his laws of motion?", "options": ["Galileo Galilei", "Isaac Newton", "Albert Einstein", "Nikola Tesla"], "answer": 2},
67-
{"question": "What is the primary ingredient in traditional Japanese sushi?", "options": ["Chicken", "Beef", "Fish", "Rice"], "answer": 4},
68-
{"question": "Which chemical element has the symbol 'Na'?", "options": ["Sodium", "Nickel", "Neon", "Nitrogen"], "answer": 1},
69-
{"question": "What is the capital city of Canada?", "options": ["Toronto", "Montreal", "Ottawa", "Vancouver"], "answer": 3},
70-
{"question": "What is the main source of energy for the Earth?", "options": ["Moon", "Sun", "Wind", "Water"], "answer": 2},
71-
{"question": "What is the process by which plants make their food?", "options": ["Photosynthesis", "Respiration", "Fermentation", "Germination"], "answer": 1},
72-
{"question": "Which continent is known as the Dark Continent?", "options": ["Asia", "Europe", "Africa", "Australia"], "answer": 3},
73-
{"question": "What is the most abundant gas in Earth's atmosphere?", "options": ["Oxygen", "Carbon Dioxide", "Nitrogen", "Hydrogen"], "answer": 3},
74-
{"question": "Which country is known as the Land of Fire and Ice?", "options": ["New Zealand", "Iceland", "Norway", "Sweden"], "answer": 2},
75-
{"question": "Who is the author of the 'Harry Potter' series?", "options": ["J.K. Rowling", "J.R.R. Tolkien", "Stephen King", "George R.R. Martin"], "answer": 1},
76-
{"question": "What is the tallest waterfall in the world?", "options": ["Niagara Falls", "Victoria Falls", "Angel Falls", "Iguazu Falls"], "answer": 3},
77-
{"question": "Which element is represented by the symbol 'Fe'?", "options": ["Iron", "Lead", "Francium", "Fermium"], "answer": 1},
78-
{"question": "Which planet is known as the Morning Star?", "options": ["Venus", "Mars", "Jupiter", "Mercury"], "answer": 1},
79-
{"question": "Which scientist is known for the theory of evolution by natural selection?", "options": ["Charles Darwin", "Gregor Mendel", "Louis Pasteur", "James Watson"], "answer": 1},
80-
{"question": "What is the main ingredient in a traditional Greek salad?", "options": ["Tomato", "Lettuce", "Cucumber", "Olive"], "answer": 4},
81-
{"question": "Which city is known as the Big Apple?", "options": ["Los Angeles", "Chicago", "New York", "San Francisco"], "answer": 3},
82-
{"question": "What is the freezing point of water in Celsius?", "options": ["0°C", "32°C", "100°C", "273°C"], "answer": 1},
64+
{"question": "Who discovered penicillin?",
65+
"options": ["Marie Curie", "Alexander Fleming", "Louis Pasteur", "Isaac Newton"], "answer": 2},
66+
{"question": "What is the main ingredient in guacamole?", "options": ["Tomato", "Avocado", "Onion", "Pepper"],
67+
"answer": 2},
68+
{"question": "Which planet is known for its rings?", "options": ["Earth", "Mars", "Saturn", "Uranus"],
69+
"answer": 3},
70+
{"question": "What is the largest island in the world?",
71+
"options": ["New Guinea", "Greenland", "Borneo", "Madagascar"], "answer": 2},
72+
{"question": "What is the name of the galaxy that contains our solar system?",
73+
"options": ["Andromeda", "Milky Way", "Triangulum", "Sombrero"], "answer": 2},
74+
{"question": "Who wrote 'Pride and Prejudice'?",
75+
"options": ["Jane Austen", "Emily Brontë", "Charlotte Brontë", "Mary Shelley"], "answer": 1},
76+
{"question": "What is the tallest mountain in the world?",
77+
"options": ["K2", "Kangchenjunga", "Everest", "Makalu"], "answer": 3},
78+
{"question": "Which element has the chemical symbol 'O'?",
79+
"options": ["Oxygen", "Osmium", "Opium", "Oganesson"], "answer": 1},
80+
{"question": "What is the longest-running Broadway show?",
81+
"options": ["The Phantom of the Opera", "Cats", "Les Misérables", "Chicago"], "answer": 1},
82+
{"question": "In which year did the Berlin Wall fall?", "options": ["1987", "1988", "1989", "1990"],
83+
"answer": 3},
84+
{"question": "What is the largest species of shark?",
85+
"options": ["Great White Shark", "Hammerhead Shark", "Whale Shark", "Tiger Shark"], "answer": 3},
86+
{"question": "Which is the only U.S. state to begin with the letter 'A'?",
87+
"options": ["Alaska", "Arizona", "Arkansas", "Alabama"], "answer": 1},
88+
{"question": "Who was the first person to step on the moon?",
89+
"options": ["Buzz Aldrin", "Neil Armstrong", "Yuri Gagarin", "Michael Collins"], "answer": 2},
90+
{"question": "What is the hardest natural substance found on Earth?",
91+
"options": ["Gold", "Iron", "Diamond", "Quartz"], "answer": 3},
92+
{"question": "Which famous scientist developed the theory of relativity?",
93+
"options": ["Isaac Newton", "Albert Einstein", "Galileo Galilei", "Niels Bohr"], "answer": 2},
94+
{"question": "What is the smallest planet in our solar system?",
95+
"options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
96+
{"question": "What is the primary language spoken in Brazil?",
97+
"options": ["Spanish", "Portuguese", "English", "French"], "answer": 2},
98+
{"question": "What type of animal is the largest living land carnivore?",
99+
"options": ["Lion", "Elephant", "Polar Bear", "Grizzly Bear"], "answer": 3},
100+
{"question": "What is the main function of red blood cells?",
101+
"options": ["Fight infection", "Carry oxygen", "Aid digestion", "Regulate temperature"], "answer": 2},
102+
{"question": "Who was the first female Prime Minister of the United Kingdom?",
103+
"options": ["Theresa May", "Margaret Thatcher", "Priti Patel", "Emily Thornberry"], "answer": 2},
104+
{"question": "Which famous physicist is known for his laws of motion?",
105+
"options": ["Galileo Galilei", "Isaac Newton", "Albert Einstein", "Nikola Tesla"], "answer": 2},
106+
{"question": "What is the primary ingredient in traditional Japanese sushi?",
107+
"options": ["Chicken", "Beef", "Fish", "Rice"], "answer": 4},
108+
{"question": "Which chemical element has the symbol 'Na'?", "options": ["Sodium", "Nickel", "Neon", "Nitrogen"],
109+
"answer": 1},
110+
{"question": "What is the capital city of Canada?", "options": ["Toronto", "Montreal", "Ottawa", "Vancouver"],
111+
"answer": 3},
112+
{"question": "What is the main source of energy for the Earth?", "options": ["Moon", "Sun", "Wind", "Water"],
113+
"answer": 2},
114+
{"question": "What is the process by which plants make their food?",
115+
"options": ["Photosynthesis", "Respiration", "Fermentation", "Germination"], "answer": 1},
116+
{"question": "Which continent is known as the Dark Continent?",
117+
"options": ["Asia", "Europe", "Africa", "Australia"], "answer": 3},
118+
{"question": "What is the most abundant gas in Earth's atmosphere?",
119+
"options": ["Oxygen", "Carbon Dioxide", "Nitrogen", "Hydrogen"], "answer": 3},
120+
{"question": "Which country is known as the Land of Fire and Ice?",
121+
"options": ["New Zealand", "Iceland", "Norway", "Sweden"], "answer": 2},
122+
{"question": "Who is the author of the 'Harry Potter' series?",
123+
"options": ["J.K. Rowling", "J.R.R. Tolkien", "Stephen King", "George R.R. Martin"], "answer": 1},
124+
{"question": "What is the tallest waterfall in the world?",
125+
"options": ["Niagara Falls", "Victoria Falls", "Angel Falls", "Iguazu Falls"], "answer": 3},
126+
{"question": "Which element is represented by the symbol 'Fe'?",
127+
"options": ["Iron", "Lead", "Francium", "Fermium"], "answer": 1},
128+
{"question": "Which planet is known as the Morning Star?", "options": ["Venus", "Mars", "Jupiter", "Mercury"],
129+
"answer": 1},
130+
{"question": "Which scientist is known for the theory of evolution by natural selection?",
131+
"options": ["Charles Darwin", "Gregor Mendel", "Louis Pasteur", "James Watson"], "answer": 1},
132+
{"question": "What is the main ingredient in a traditional Greek salad?",
133+
"options": ["Tomato", "Lettuce", "Cucumber", "Olive"], "answer": 4},
134+
{"question": "Which city is known as the Big Apple?",
135+
"options": ["Los Angeles", "Chicago", "New York", "San Francisco"], "answer": 3},
136+
{"question": "What is the freezing point of water in Celsius?", "options": ["0°C", "32°C", "100°C", "273°C"],
137+
"answer": 1},
83138
{"question": "What is the currency used in Japan?", "options": ["Yuan", "Won", "Yen", "Ringgit"], "answer": 3},
84-
{"question": "Which organ is responsible for pumping blood throughout the body?", "options": ["Brain", "Liver", "Lungs", "Heart"], "answer": 4},
85-
{"question": "What is the name of the famous clock tower in London?", "options": ["Big Ben", "London Eye", "Tower Bridge", "Buckingham Palace"], "answer": 1},
86-
{"question": "Which element has the atomic number 79?", "options": ["Gold", "Silver", "Platinum", "Copper"], "answer": 1},
87-
{"question": "What is the smallest bone in the human body?", "options": ["Stapes", "Incus", "Malleus", "Clavicle"], "answer": 1},
88-
{"question": "What is the name of the device used to measure temperature?", "options": ["Barometer", "Thermometer", "Altimeter", "Hygrometer"], "answer": 2},
89-
{"question": "Which famous scientist developed the polio vaccine?", "options": ["Jonas Salk", "Albert Sabin", "Louis Pasteur", "Robert Koch"], "answer": 1},
90-
{"question": "Which gas is most commonly used in light bulbs?", "options": ["Oxygen", "Hydrogen", "Argon", "Neon"], "answer": 3},
91-
{"question": "Which planet is known as the 'Giant Red Spot'?", "options": ["Jupiter", "Saturn", "Neptune", "Uranus"], "answer": 1},
92-
{"question": "Which country is the largest by land area?", "options": ["Canada", "United States", "China", "Russia"], "answer": 4},
93-
{"question": "What is the name of the famous river that flows through Egypt?", "options": ["Amazon", "Nile", "Yangtze", "Mississippi"], "answer": 2},
94-
{"question": "Who was the 16th President of the United States?", "options": ["Abraham Lincoln", "George Washington", "Thomas Jefferson", "John Adams"], "answer": 1},
95-
{"question": "What is the main ingredient in traditional Italian pesto sauce?", "options": ["Tomato", "Basil", "Garlic", "Olive"], "answer": 2},
96-
{"question": "Which planet is known for its prominent ring system?", "options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
139+
{"question": "Which organ is responsible for pumping blood throughout the body?",
140+
"options": ["Brain", "Liver", "Lungs", "Heart"], "answer": 4},
141+
{"question": "What is the name of the famous clock tower in London?",
142+
"options": ["Big Ben", "London Eye", "Tower Bridge", "Buckingham Palace"], "answer": 1},
143+
{"question": "Which element has the atomic number 79?", "options": ["Gold", "Silver", "Platinum", "Copper"],
144+
"answer": 1},
145+
{"question": "What is the smallest bone in the human body?",
146+
"options": ["Stapes", "Incus", "Malleus", "Clavicle"], "answer": 1},
147+
{"question": "What is the name of the device used to measure temperature?",
148+
"options": ["Barometer", "Thermometer", "Altimeter", "Hygrometer"], "answer": 2},
149+
{"question": "Which famous scientist developed the polio vaccine?",
150+
"options": ["Jonas Salk", "Albert Sabin", "Louis Pasteur", "Robert Koch"], "answer": 1},
151+
{"question": "Which gas is most commonly used in light bulbs?",
152+
"options": ["Oxygen", "Hydrogen", "Argon", "Neon"], "answer": 3},
153+
{"question": "Which planet is known as the 'Giant Red Spot'?",
154+
"options": ["Jupiter", "Saturn", "Neptune", "Uranus"], "answer": 1},
155+
{"question": "Which country is the largest by land area?",
156+
"options": ["Canada", "United States", "China", "Russia"], "answer": 4},
157+
{"question": "What is the name of the famous river that flows through Egypt?",
158+
"options": ["Amazon", "Nile", "Yangtze", "Mississippi"], "answer": 2},
159+
{"question": "Who was the 16th President of the United States?",
160+
"options": ["Abraham Lincoln", "George Washington", "Thomas Jefferson", "John Adams"], "answer": 1},
161+
{"question": "What is the main ingredient in traditional Italian pesto sauce?",
162+
"options": ["Tomato", "Basil", "Garlic", "Olive"], "answer": 2},
163+
{"question": "Which planet is known for its prominent ring system?",
164+
"options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
97165
{"question": "What is the chemical symbol for Carbon?", "options": ["C", "Ca", "Co", "Cl"], "answer": 1},
98-
{"question": "Which famous structure is located in Paris, France?", "options": ["Eiffel Tower", "Colosseum", "Great Wall", "Taj Mahal"], "answer": 1},
99-
{"question": "What is the most spoken language in the world?", "options": ["English", "Mandarin", "Spanish", "Hindi"], "answer": 2},
100-
{"question": "Who wrote 'The Catcher in the Rye'?", "options": ["J.D. Salinger", "F. Scott Fitzgerald", "Ernest Hemingway", "John Steinbeck"], "answer": 1},
101-
{"question": "What is the largest volcano in the world?", "options": ["Mount Fuji", "Mount Kilimanjaro", "Mauna Loa", "Mount St. Helens"], "answer": 3},
102-
{"question": "Which country is famous for the Taj Mahal?", "options": ["India", "Pakistan", "Bangladesh", "Nepal"], "answer": 1},
103-
{"question": "What is the main ingredient in traditional French ratatouille?", "options": ["Potato", "Tomato", "Eggplant", "Zucchini"], "answer": 3},
104-
{"question": "Which planet is known for its Great Red Spot?", "options": ["Jupiter", "Saturn", "Neptune", "Mars"], "answer": 1},
105-
{"question": "What is the primary color of the Sun as seen from Earth?", "options": ["Blue", "Yellow", "Red", "White"], "answer": 2},
106-
{"question": "Which animal is known for its black and white stripes?", "options": ["Tiger", "Zebra", "Panda", "Giraffe"], "answer": 2},
107-
{"question": "What is the largest continent by population?", "options": ["Africa", "Asia", "Europe", "North America"], "answer": 2},
166+
{"question": "Which famous structure is located in Paris, France?",
167+
"options": ["Eiffel Tower", "Colosseum", "Great Wall", "Taj Mahal"], "answer": 1},
168+
{"question": "What is the most spoken language in the world?",
169+
"options": ["English", "Mandarin", "Spanish", "Hindi"], "answer": 2},
170+
{"question": "Who wrote 'The Catcher in the Rye'?",
171+
"options": ["J.D. Salinger", "F. Scott Fitzgerald", "Ernest Hemingway", "John Steinbeck"], "answer": 1},
172+
{"question": "What is the largest volcano in the world?",
173+
"options": ["Mount Fuji", "Mount Kilimanjaro", "Mauna Loa", "Mount St. Helens"], "answer": 3},
174+
{"question": "Which country is famous for the Taj Mahal?",
175+
"options": ["India", "Pakistan", "Bangladesh", "Nepal"], "answer": 1},
176+
{"question": "What is the main ingredient in traditional French ratatouille?",
177+
"options": ["Potato", "Tomato", "Eggplant", "Zucchini"], "answer": 3},
178+
{"question": "Which planet is known for its Great Red Spot?",
179+
"options": ["Jupiter", "Saturn", "Neptune", "Mars"], "answer": 1},
180+
{"question": "What is the primary color of the Sun as seen from Earth?",
181+
"options": ["Blue", "Yellow", "Red", "White"], "answer": 2},
182+
{"question": "Which animal is known for its black and white stripes?",
183+
"options": ["Tiger", "Zebra", "Panda", "Giraffe"], "answer": 2},
184+
{"question": "What is the largest continent by population?",
185+
"options": ["Africa", "Asia", "Europe", "North America"], "answer": 2},
108186
{"question": "What is the chemical symbol for Sodium?", "options": ["Na", "So", "S", "Sd"], "answer": 1},
109-
{"question": "Which element has the atomic number 2?", "options": ["Helium", "Hydrogen", "Oxygen", "Neon"], "answer": 1},
110-
{"question": "What is the process by which plants make their food using sunlight?", "options": ["Photosynthesis", "Respiration", "Fermentation", "Digestion"], "answer": 1},
111-
{"question": "What is the name of the famous tower in Pisa, Italy?", "options": ["Leaning Tower of Pisa", "Eiffel Tower", "Big Ben", "Colosseum"], "answer": 1},
112-
{"question": "Which ocean is the largest?", "options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
113-
{"question": "Which city is known as the 'City of Angels'?", "options": ["Los Angeles", "Paris", "Rome", "New York"], "answer": 1},
114-
{"question": "Who is known as the 'King of Pop'?", "options": ["Elvis Presley", "Michael Jackson", "Prince", "Madonna"], "answer": 2},
115-
{"question": "What is the hardest natural substance on Earth?", "options": ["Gold", "Diamond", "Iron", "Platinum"], "answer": 2},
116-
{"question": "Which famous playwright wrote 'Romeo and Juliet'?", "options": ["William Shakespeare", "George Bernard Shaw", "Tennessee Williams", "Arthur Miller"], "answer": 1},
117-
{"question": "What is the capital city of Italy?", "options": ["Venice", "Florence", "Rome", "Milan"], "answer": 3},
118-
{"question": "Which is the largest planet in our solar system?", "options": ["Earth", "Mars", "Saturn", "Jupiter"], "answer": 4},
119-
{"question": "What is the process by which a caterpillar becomes a butterfly?", "options": ["Metamorphosis", "Photosynthesis", "Germination", "Respiration"], "answer": 1},
120-
{"question": "Which country is famous for its kangaroos?", "options": ["Australia", "New Zealand", "South Africa", "India"], "answer": 1},
187+
{"question": "Which element has the atomic number 2?", "options": ["Helium", "Hydrogen", "Oxygen", "Neon"],
188+
"answer": 1},
189+
{"question": "What is the process by which plants make their food using sunlight?",
190+
"options": ["Photosynthesis", "Respiration", "Fermentation", "Digestion"], "answer": 1},
191+
{"question": "What is the name of the famous tower in Pisa, Italy?",
192+
"options": ["Leaning Tower of Pisa", "Eiffel Tower", "Big Ben", "Colosseum"], "answer": 1},
193+
{"question": "Which ocean is the largest?",
194+
"options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
195+
{"question": "Which city is known as the 'City of Angels'?",
196+
"options": ["Los Angeles", "Paris", "Rome", "New York"], "answer": 1},
197+
{"question": "Who is known as the 'King of Pop'?",
198+
"options": ["Elvis Presley", "Michael Jackson", "Prince", "Madonna"], "answer": 2},
199+
{"question": "What is the hardest natural substance on Earth?",
200+
"options": ["Gold", "Diamond", "Iron", "Platinum"], "answer": 2},
201+
{"question": "Which famous playwright wrote 'Romeo and Juliet'?",
202+
"options": ["William Shakespeare", "George Bernard Shaw", "Tennessee Williams", "Arthur Miller"], "answer": 1},
203+
{"question": "What is the capital city of Italy?", "options": ["Venice", "Florence", "Rome", "Milan"],
204+
"answer": 3},
205+
{"question": "Which is the largest planet in our solar system?",
206+
"options": ["Earth", "Mars", "Saturn", "Jupiter"], "answer": 4},
207+
{"question": "What is the process by which a caterpillar becomes a butterfly?",
208+
"options": ["Metamorphosis", "Photosynthesis", "Germination", "Respiration"], "answer": 1},
209+
{"question": "Which country is famous for its kangaroos?",
210+
"options": ["Australia", "New Zealand", "South Africa", "India"], "answer": 1},
121211
{"question": "What is the chemical symbol for Gold?", "options": ["Au", "Ag", "Pb", "Fe"], "answer": 1},
122-
{"question": "Which human organ is responsible for detoxifying the blood?", "options": ["Liver", "Kidney", "Heart", "Lungs"], "answer": 1},
123-
{"question": "What is the capital city of Australia?", "options": ["Sydney", "Melbourne", "Brisbane", "Canberra"], "answer": 4},
124-
{"question": "Which famous structure is found in India?", "options": ["Eiffel Tower", "Great Wall", "Taj Mahal", "Colosseum"], "answer": 3},
125-
{"question": "What is the name of the largest ocean on Earth?", "options": ["Atlantic", "Indian", "Arctic", "Pacific"], "answer": 4},
126-
{"question": "Which planet is known for its extensive ring system?", "options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
127-
{"question": "What is the largest organ in the human body?", "options": ["Liver", "Skin", "Lungs", "Heart"], "answer": 2},
128-
{"question": "What is the capital city of Brazil?", "options": ["Rio de Janeiro", "São Paulo", "Brasília", "Salvador"], "answer": 3},
129-
{"question": "What is the smallest planet in our solar system?", "options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
130-
{"question": "Which country is known for the Eiffel Tower?", "options": ["Germany", "France", "Italy", "Spain"], "answer": 2},
212+
{"question": "Which human organ is responsible for detoxifying the blood?",
213+
"options": ["Liver", "Kidney", "Heart", "Lungs"], "answer": 1},
214+
{"question": "What is the capital city of Australia?",
215+
"options": ["Sydney", "Melbourne", "Brisbane", "Canberra"], "answer": 4},
216+
{"question": "Which famous structure is found in India?",
217+
"options": ["Eiffel Tower", "Great Wall", "Taj Mahal", "Colosseum"], "answer": 3},
218+
{"question": "What is the name of the largest ocean on Earth?",
219+
"options": ["Atlantic", "Indian", "Arctic", "Pacific"], "answer": 4},
220+
{"question": "Which planet is known for its extensive ring system?",
221+
"options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
222+
{"question": "What is the largest organ in the human body?", "options": ["Liver", "Skin", "Lungs", "Heart"],
223+
"answer": 2},
224+
{"question": "What is the capital city of Brazil?",
225+
"options": ["Rio de Janeiro", "São Paulo", "Brasília", "Salvador"], "answer": 3},
226+
{"question": "What is the smallest planet in our solar system?",
227+
"options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
228+
{"question": "Which country is known for the Eiffel Tower?", "options": ["Germany", "France", "Italy", "Spain"],
229+
"answer": 2},
131230
{"question": "What is the chemical symbol for Helium?", "options": ["He", "H", "Hl", "Ho"], "answer": 1},
132-
{"question": "Which famous scientist developed the theory of relativity?", "options": ["Isaac Newton", "Albert Einstein", "Niels Bohr", "Michael Faraday"], "answer": 2},
133-
{"question": "Which country is famous for sushi?", "options": ["Japan", "China", "Thailand", "Vietnam"], "answer": 1},
134-
{"question": "Which ocean is the smallest?", "options": ["Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"], "answer": 4},
135-
{"question": "What is the capital of South Korea?", "options": ["Seoul", "Busan", "Incheon", "Gwangju"], "answer": 1},
231+
{"question": "Which famous scientist developed the theory of relativity?",
232+
"options": ["Isaac Newton", "Albert Einstein", "Niels Bohr", "Michael Faraday"], "answer": 2},
233+
{"question": "Which country is famous for sushi?", "options": ["Japan", "China", "Thailand", "Vietnam"],
234+
"answer": 1},
235+
{"question": "Which ocean is the smallest?",
236+
"options": ["Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"], "answer": 4},
237+
{"question": "What is the capital of South Korea?", "options": ["Seoul", "Busan", "Incheon", "Gwangju"],
238+
"answer": 1},
136239
{"question": "What is the chemical symbol for Oxygen?", "options": ["O", "Ox", "Oy", "Og"], "answer": 1},
137-
{"question": "Which country is known for its pyramids?", "options": ["Mexico", "Peru", "Egypt", "China"], "answer": 3},
138-
{"question": "What is the primary function of the human skeletal system?", "options": ["Protection", "Movement", "Support", "All of the above"], "answer": 4},
139-
{"question": "What is the largest desert in the world?", "options": ["Sahara", "Gobi", "Kalahari", "Antarctic Desert"], "answer": 4},
140-
{"question": "Which planet is known as the 'Red Planet'?", "options": ["Mars", "Jupiter", "Venus", "Saturn"], "answer": 1},
141-
{"question": "What is the capital city of Spain?", "options": ["Madrid", "Barcelona", "Valencia", "Seville"], "answer": 1},
240+
{"question": "Which country is known for its pyramids?", "options": ["Mexico", "Peru", "Egypt", "China"],
241+
"answer": 3},
242+
{"question": "What is the primary function of the human skeletal system?",
243+
"options": ["Protection", "Movement", "Support", "All of the above"], "answer": 4},
244+
{"question": "What is the largest desert in the world?",
245+
"options": ["Sahara", "Gobi", "Kalahari", "Antarctic Desert"], "answer": 4},
246+
{"question": "Which planet is known as the 'Red Planet'?", "options": ["Mars", "Jupiter", "Venus", "Saturn"],
247+
"answer": 1},
248+
{"question": "What is the capital city of Spain?", "options": ["Madrid", "Barcelona", "Valencia", "Seville"],
249+
"answer": 1},
142250
{"question": "What is the chemical symbol for Potassium?", "options": ["P", "Pt", "K", "Po"], "answer": 3},
143-
{"question": "Which is the longest river in the world?", "options": ["Nile", "Amazon", "Yangtze", "Mississippi"], "answer": 2},
144-
{"question": "Which planet is known for its Great Red Spot?", "options": ["Jupiter", "Mars", "Saturn", "Neptune"], "answer": 1},
145-
{"question": "What is the capital city of Canada?", "options": ["Toronto", "Montreal", "Ottawa", "Vancouver"], "answer": 3},
146-
{"question": "What is the primary source of energy for the Earth?", "options": ["Moon", "Sun", "Wind", "Water"], "answer": 2},
147-
{"question": "What is the process by which plants make their food using sunlight?", "options": ["Photosynthesis", "Respiration", "Fermentation", "Digestion"], "answer": 1},
148-
{"question": "What is the name of the famous tower in Pisa, Italy?", "options": ["Leaning Tower of Pisa", "Eiffel Tower", "Big Ben", "Colosseum"], "answer": 1},
149-
{"question": "Which ocean is the largest?", "options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
150-
{"question": "Which city is known as the 'City of Angels'?", "options": ["Los Angeles", "Paris", "Rome", "New York"], "answer": 1},
151-
{"question": "Who is known as the 'King of Pop'?", "options": ["Elvis Presley", "Michael Jackson", "Prince", "Madonna"], "answer": 2},
152-
{"question": "What is the hardest natural substance on Earth?", "options": ["Gold", "Diamond", "Iron", "Platinum"], "answer": 2},
153-
{"question": "Which famous playwright wrote 'Romeo and Juliet'?", "options": ["William Shakespeare", "George Bernard Shaw", "Tennessee Williams", "Arthur Miller"], "answer": 1},
154-
{"question": "What is the capital city of Italy?", "options": ["Venice", "Florence", "Rome", "Milan"], "answer": 3},
155-
{"question": "Which is the largest planet in our solar system?", "options": ["Earth", "Mars", "Saturn", "Jupiter"], "answer": 4},
156-
{"question": "What is the process by which a caterpillar becomes a butterfly?", "options": ["Metamorphosis", "Photosynthesis", "Germination", "Respiration"], "answer": 1},
157-
{"question": "Which country is famous for its kangaroos?", "options": ["Australia", "New Zealand", "South Africa", "India"], "answer": 1},
251+
{"question": "Which is the longest river in the world?",
252+
"options": ["Nile", "Amazon", "Yangtze", "Mississippi"], "answer": 2},
253+
{"question": "Which planet is known for its Great Red Spot?",
254+
"options": ["Jupiter", "Mars", "Saturn", "Neptune"], "answer": 1},
255+
{"question": "What is the capital city of Canada?", "options": ["Toronto", "Montreal", "Ottawa", "Vancouver"],
256+
"answer": 3},
257+
{"question": "What is the primary source of energy for the Earth?", "options": ["Moon", "Sun", "Wind", "Water"],
258+
"answer": 2},
259+
{"question": "What is the process by which plants make their food using sunlight?",
260+
"options": ["Photosynthesis", "Respiration", "Fermentation", "Digestion"], "answer": 1},
261+
{"question": "What is the name of the famous tower in Pisa, Italy?",
262+
"options": ["Leaning Tower of Pisa", "Eiffel Tower", "Big Ben", "Colosseum"], "answer": 1},
263+
{"question": "Which ocean is the largest?",
264+
"options": ["Atlantic Ocean", "Indian Ocean", "Arctic Ocean", "Pacific Ocean"], "answer": 4},
265+
{"question": "Which city is known as the 'City of Angels'?",
266+
"options": ["Los Angeles", "Paris", "Rome", "New York"], "answer": 1},
267+
{"question": "Who is known as the 'King of Pop'?",
268+
"options": ["Elvis Presley", "Michael Jackson", "Prince", "Madonna"], "answer": 2},
269+
{"question": "What is the hardest natural substance on Earth?",
270+
"options": ["Gold", "Diamond", "Iron", "Platinum"], "answer": 2},
271+
{"question": "Which famous playwright wrote 'Romeo and Juliet'?",
272+
"options": ["William Shakespeare", "George Bernard Shaw", "Tennessee Williams", "Arthur Miller"], "answer": 1},
273+
{"question": "What is the capital city of Italy?", "options": ["Venice", "Florence", "Rome", "Milan"],
274+
"answer": 3},
275+
{"question": "Which is the largest planet in our solar system?",
276+
"options": ["Earth", "Mars", "Saturn", "Jupiter"], "answer": 4},
277+
{"question": "What is the process by which a caterpillar becomes a butterfly?",
278+
"options": ["Metamorphosis", "Photosynthesis", "Germination", "Respiration"], "answer": 1},
279+
{"question": "Which country is famous for its kangaroos?",
280+
"options": ["Australia", "New Zealand", "South Africa", "India"], "answer": 1},
158281
{"question": "What is the chemical symbol for Gold?", "options": ["Au", "Ag", "Pb", "Fe"], "answer": 1},
159-
{"question": "Which human organ is responsible for detoxifying the blood?", "options": ["Liver", "Kidney", "Heart", "Lungs"], "answer": 1},
160-
{"question": "What is the capital city of Australia?", "options": ["Sydney", "Melbourne", "Brisbane", "Canberra"], "answer": 4},
161-
{"question": "Which famous structure is found in India?", "options": ["Eiffel Tower", "Great Wall", "Taj Mahal", "Colosseum"], "answer": 3},
162-
{"question": "What is the name of the largest ocean on Earth?", "options": ["Atlantic", "Indian", "Arctic", "Pacific"], "answer": 4},
163-
{"question": "Which planet is known for its extensive ring system?", "options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
164-
{"question": "What is the largest organ in the human body?", "options": ["Liver", "Skin", "Lungs", "Heart"], "answer": 2},
165-
{"question": "What is the capital city of Brazil?", "options": ["Rio de Janeiro", "São Paulo", "Brasília", "Salvador"], "answer": 3},
166-
{"question": "What is the smallest planet in our solar system?", "options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
167-
{"question": "Which country is known for the Eiffel Tower?", "options": ["Germany", "France", "Italy", "Spain"], "answer": 2},
282+
{"question": "Which human organ is responsible for detoxifying the blood?",
283+
"options": ["Liver", "Kidney", "Heart", "Lungs"], "answer": 1},
284+
{"question": "What is the capital city of Australia?",
285+
"options": ["Sydney", "Melbourne", "Brisbane", "Canberra"], "answer": 4},
286+
{"question": "Which famous structure is found in India?",
287+
"options": ["Eiffel Tower", "Great Wall", "Taj Mahal", "Colosseum"], "answer": 3},
288+
{"question": "What is the name of the largest ocean on Earth?",
289+
"options": ["Atlantic", "Indian", "Arctic", "Pacific"], "answer": 4},
290+
{"question": "Which planet is known for its extensive ring system?",
291+
"options": ["Saturn", "Jupiter", "Uranus", "Neptune"], "answer": 1},
292+
{"question": "What is the largest organ in the human body?", "options": ["Liver", "Skin", "Lungs", "Heart"],
293+
"answer": 2},
294+
{"question": "What is the capital city of Brazil?",
295+
"options": ["Rio de Janeiro", "São Paulo", "Brasília", "Salvador"], "answer": 3},
296+
{"question": "What is the smallest planet in our solar system?",
297+
"options": ["Mercury", "Mars", "Venus", "Earth"], "answer": 1},
298+
{"question": "Which country is known for the Eiffel Tower?", "options": ["Germany", "France", "Italy", "Spain"],
299+
"answer": 2},
168300
{"question": "What is the chemical symbol for Helium?", "options": ["He", "H", "Hl", "Ho"], "answer": 1},
169-
{"question": "Which famous scientist developed the theory of relativity?", "options": ["Isaac Newton", "Albert Einstein", "Niels Bohr", "Michael Faraday"], "answer": 2},
170-
{"question": "Which country is famous for sushi?", "options": ["Japan", "China", "Thailand", "Vietnam"], "answer": 1},
171-
{"question": "Which ocean is the smallest?", "options": ["Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"], "answer": 4},
172-
{"question": "What is the capital of South Korea?", "options": ["Seoul", "Busan", "Incheon", "Gwangju"], "answer": 1},
301+
{"question": "Which famous scientist developed the theory of relativity?",
302+
"options": ["Isaac Newton", "Albert Einstein", "Niels Bohr", "Michael Faraday"], "answer": 2},
303+
{"question": "Which country is famous for sushi?", "options": ["Japan", "China", "Thailand", "Vietnam"],
304+
"answer": 1},
305+
{"question": "Which ocean is the smallest?",
306+
"options": ["Pacific Ocean", "Atlantic Ocean", "Indian Ocean", "Arctic Ocean"], "answer": 4},
307+
{"question": "What is the capital of South Korea?", "options": ["Seoul", "Busan", "Incheon", "Gwangju"],
308+
"answer": 1},
173309
{"question": "What is the chemical symbol for Oxygen?", "options": ["O", "Ox", "Oy", "Og"], "answer": 1},
174-
{"question": "Which country is known for its pyramids?", "options": ["Mexico", "Peru", "Egypt", "China"], "answer": 3},
175-
{"question": "What is the primary function of the human skeletal system?", "options": ["Protection", "Movement", "Support", "All of the above"], "answer": 4},
176-
{"question": "What is the largest desert in the world?", "options": ["Sahara", "Gobi", "Kalahari", "Antarctic Desert"], "answer": 4},
177-
{"question": "Which planet is known as the 'Red Planet'?", "options": ["Mars", "Jupiter", "Venus", "Saturn"], "answer": 1},
178-
{"question": "What is the capital city of Spain?", "options": ["Madrid", "Barcelona", "Valencia", "Seville"], "answer": 1},
310+
{"question": "Which country is known for its pyramids?", "options": ["Mexico", "Peru", "Egypt", "China"],
311+
"answer": 3},
312+
{"question": "What is the primary function of the human skeletal system?",
313+
"options": ["Protection", "Movement", "Support", "All of the above"], "answer": 4},
314+
{"question": "What is the largest desert in the world?",
315+
"options": ["Sahara", "Gobi", "Kalahari", "Antarctic Desert"], "answer": 4},
316+
{"question": "Which planet is known as the 'Red Planet'?", "options": ["Mars", "Jupiter", "Venus", "Saturn"],
317+
"answer": 1},
318+
{"question": "What is the capital city of Spain?", "options": ["Madrid", "Barcelona", "Valencia", "Seville"],
319+
"answer": 1},
179320
{"question": "What is the chemical symbol for Potassium?", "options": ["P", "Pt", "K", "Po"], "answer": 3},
180-
{"question": "Which is the longest river in the world?", "options": ["Nile", "Amazon", "Yangtze", "Mississippi"], "answer": 2}
321+
{"question": "Which is the longest river in the world?",
322+
"options": ["Nile", "Amazon", "Yangtze", "Mississippi"], "answer": 2}
181323
]
182324

183325
# Shuffle the questions
@@ -213,5 +355,6 @@ def quiz_game():
213355
# Print the final score
214356
print(f"Your final score is {score} out of {len(questions)}")
215357

358+
216359
# Run the quiz
217360
quiz_game()

0 commit comments

Comments
 (0)
Please sign in to comment.