Access quiz data from cloud-hosted JSON
Level: Real-World
Project Brief
Let’s start the week by practicing data structures. Take a minute to look at these JSON data. Here is an excerpt of the data:
{
"quizzes": [
{
"quizTitle": "World Quiz",
"questions": [
{
"id": 1,
"question": "What is the capital of France?",
"choices": {
"Paris": true,
"London": false,
"Berlin": false,
"Madrid": false
}
},
{
"id": 2,Create a Python program that asks the user to enter the ID of a question in the command line. Then, the program returns the correct answer for that question.
Expected Output
Keep reading with a 7-day free trial
Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.


