Tech and Innovation in Healthcare
Python Basics,
Loops & Conditions
Medical Algorithms
Arrays & Dictionaries
Python Diagnosis
100

What is at least three examples of a disruptive technology in medicine?

Artificial Intelligence (AI), Telemedicine, Wearable devices, 3D printing, etc.

100

What is a variable in Python? Give one example

A variable is a named storage for data values. Age = 1

100

What is the purpose of a medical algorithm?

To guide decision-making in healthcare using step-by-step logic.

100

What is a list in Python?

A list is an ordered collection of items, written with square brackets [].

100

What is the output of: print(3 > 2)?

True

200

Name one use of AI in medical imaging.

AI is used to detect diseases from X-rays, MRIs, or CT scans.

200

Write a simple if-else to check if temp > 38.

if temp > 38:
print("Fever")
else:
print("No fever")

200

Identify the input and output in a diabetes screening algorithm.

Input: age, BMI, glucose; Output: diagnosis (e.g., diabetes or prediabetes).

200

How do you access the first item in a list?

list_name[0]

200

What does this code print: if True: print("Yes") else: print("No")

Yes

300

What is telemedicine and one benefit of it?

Telemedicine: delivering healthcare remotely using technology; Benefit: accessibility for remote patients.

300

What does a for loop do? Give a simple example.

A for loop repeats a block of code for each item in a sequence. Example: for i in range(5): print(i)

300

Write an algorithm to check if a patient is at high risk (age > 65 and cough).

if age > 65 and cough:
print("High risk")

300

Create a dictionary with keys: 'name', 'age'.

patient = {"name": "John", "age": 30}

300

Diagnose this code: age = 70; if age < 60: print("Low risk") else: print("High risk")

High risk

400

What is the difference between Big Data and AI in healthcare?

Big Data: large datasets analyzed for trends; AI: machines learning from data to make decisions.

400

Create a loop to print patient names from a list.

for name in patients:
print(name)

400

Use if-elif-else to classify fever: <37 normal, 37–38 mild, >38 high.

if temp < 37:
print("Normal")
elif temp <= 38:
print("Mild fever")
else:
print("High fever")

400

How can dictionaries be used to store symptom data?

To map symptoms to their values, e.g., {"fever": True, "cough": False}

400

What is the error in: if temp = 38: print("Fever")?

The error is using = instead of == in the condition.

500

Describe one real-world application of wearable health tech.

Wearable tech: smartwatches monitor heart rate, oxygen, sleep, alerting users and doctors in real-time.

500

Explain an write a program that goes through a list of patient temperatures and prints "Fever" only if the temperature is greater than 38.

temps = [36.5, 38.2, 37.0, 39.1]
for t in temps:
    if t > 38:
        print("Fever")

500

Build a logic: if heart rate > 100 and BP < 90 → alert.

if heart_rate > 100 and bp < 90:
print("Alert: possible shock")

500

Create a dictionary for patient A with nested symptoms.

patient = {"name": "Alice", "symptoms": {"fever": True, "cough": True}}

500

What does this code do? symptoms = {"cough": True, "fever": False}; if symptoms["cough"]: print("Check lungs")

Prints Check lungs because "cough" is True.

M
e
n
u