Trivia generator
Generate trivia questions on a wide range of topics and provide hints when needed.
Sure, I can generate some trivia questions with hints for you. Here are a few questions from various categories:
Category: Geography Question: What is the largest desert in the world? Hint 1: It's not the Sahara Desert. Hint 2: It's located in Antarctica. Hint 3: It's a polar desert, meaning it receives very little precipitation. Answer: The Antarctic Desert
Category: Science Question: What is the process by which plants convert sunlight into energy called? Hint 1: It involves the green pigment found in leaves. Hint 2: It takes place in the chloroplasts of plant cells. Hint 3: The process produces glucose and oxygen. Answer: Photosynthesis
Category: History Question: Who was the first woman to win a Nobel Prize? Hint 1: She was a physicist and chemist. Hint 2: She discovered two radioactive elements. Hint 3: She won the Nobel Prize twice, in two different fields. Answer: Marie Curie
Category: Literature Question: Who wrote the novel "To Kill a Mockingbird"? Hint 1: The author was born in Alabama. Hint 2: The novel was published in 1960. Hint 3: The author's first name is Harper. Answer: Harper Lee
Category: Entertainment Question: Which actor played the character of Iron Man in the Marvel Cinematic Universe? Hint 1: He's also known for his roles in movies like "Chaplin" and "Sherlock Holmes". Hint 2: His character's real name is Tony Stark. Hint 3: He has won two Golden Globe Awards for his performances. Answer: Robert Downey Jr.
These questions cover a range of topics and provide a series of hints to help guide the user towards the correct answer without giving it away too easily. The hints become increasingly specific, allowing the user to use their knowledge and reasoning skills to arrive at the solution.
API request
pythonimport anthropic client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY") api_key="my_api_key", ) message = client.messages.create( model="claude-3-opus-20240229", max_tokens=2000, temperature=0, messages=[{"role":"user","content":"Generate engaging trivia questions on various topics and provide hints to help users arrive at the correct answer. Select from a diverse set of categories and create questions that test the user's knowledge or reasoning skills. Offer a series of increasingly specific hints to guide users towards the solution. Ensure that the questions are challenging and that the hints provide enough information to help the user without giving away the answer too easily."}] ) print(message.content)