History game
unknown
plain_text
7 days ago
1.7 kB
4
Indexable
# Adam Smith Market Forces Quiz Game # Define questions and answers questions = [ { "question": "What economic concept connects wages, profits, and economic growth?", "options": ["A) Mercantilism", "B) Supply and Demand", "C) Barter System", "D) Communism"], "answer": "B" }, { "question": "According to Adam Smith, what drives economic growth?", "options": ["A) Government regulations", "B) Market forces", "C) Random chance", "D) Trade unions"], "answer": "B" }, { "question": "In a free market, if supply increases but demand stays the same, what happens to prices?", "options": ["A) Prices rise", "B) Prices fall", "C) Prices stay the same", "D) Prices become unpredictable"], "answer": "B" }, { "question": "True or False: Adam Smith believed the government should control wages and profits.", "options": ["A) True", "B) False"], "answer": "B" }, { "question": "Fill in the blank: Adam Smith wrote a famous book called 'The Wealth of ________'.", "answer": "Nations" } ] # Initialize score score = 0 # Ask questions for q in questions: print("\n" + q["question"]) # If multiple-choice, display options if "options" in q: for option in q["options"]: print(option) # Get user answer user_answer = input("Your answer: ").strip().capitalize() # Check if answer is correct if user_answer == q["answer"]: print("ā Correct!") score += 1 else: print(f"ā Wrong! The correct answer was: {q['answer']}") # Display final score print("\nš Quiz Complete! You scored", score, "out of", len(questions))
Editor is loading...
Leave a Comment