Question 33: If Elif Medical2

🚑 First Aid Quiz Task 2

You will create a Python program that asks 3 medical awareness questions.
The program will:

  • Ask for the user’s name.

  • Show each question and 3 choices.

  • Use if…else to check if the answer is correct.

  • Add 1 point for each correct answer.

  • At the end, show the total correct score and give a grade message based on the score.


Question 1 – Nosebleed

Your friend’s nose suddenly starts bleeding 😮

What should you do first?

Press 1 for: Tilt their head back and pinch the nose
Press 2 for: Tilt their head forward and pinch the nose
Press 3 for: Make them lie flat on the ground

Correct Answer: 2 – Tilt their head forward and pinch the nose


Question 2 – Choking

Someone is eating and suddenly starts coughing hard, can’t speak, and looks panicked 😨

What should you do first?

Press 1 for: Give them water to drink
Press 2 for: Perform the Heimlich maneuver
Press 3 for: Tell them to lie down and rest

Correct Answer: 2 – Perform the Heimlich maneuver


Question 3 – Fainting

You see your friend faint while standing in the sun ☀️

What should you do first?

Press 1 for: Lay them on their back and lift their legs
Press 2 for: Give them food immediately
Press 3 for: Shake them to wake them up

Correct Answer: 1 – Lay them on their back and lift their legs


🛠 Your Job

  1. Ask the user to type their name.

  2. Show each question with the 3 choices.

  3. If the answer is correct, say:
    ✅ That's right, [name]!
    Add 1 point to the score.

  4. If the answer is wrong, say:
    ❌ Oops, not the best choice.

  5. If the answer is not 1, 2, or 3, say:
    ⚠️ Please pick 1, 2, or 3.

  6. After all 3 questions, show the total score in this format:
    "You got X out of 3 correct."

  7. Use a conditional statement to grade:

    • If score is 3: "🎉 Excellent! You know your first aid well."

    • If score is 2: "👍 Good job! Just a little more practice needed."

    • If score is 0 or 1: "📚 Keep learning! First aid can save lives."

 

Write what you are looking for, and press enter to begin your search!