Daily Python Projects

Daily Python Projects

Share this post

Daily Python Projects
Daily Python Projects
Access quiz data from cloud-hosted JSON
Copy link
Facebook
Email
Notes
More

Access quiz data from cloud-hosted JSON

Level: Real-World

May 27, 2024
∙ Paid
3

Share this post

Daily Python Projects
Daily Python Projects
Access quiz data from cloud-hosted JSON
Copy link
Facebook
Email
Notes
More
Share

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

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More