What is at least three examples of a disruptive technology in medicine?
Artificial Intelligence (AI), Telemedicine, Wearable devices, 3D printing, etc.
What is a variable in Python? Give one example
A variable is a named storage for data values. Age = 1
What is the purpose of a medical algorithm?
To guide decision-making in healthcare using step-by-step logic.
What is a list in Python?
A list is an ordered collection of items, written with square brackets [].
What is the output of: print(3 > 2)?
True
Name one use of AI in medical imaging.
AI is used to detect diseases from X-rays, MRIs, or CT scans.
Write a simple if-else to check if temp > 38.
if temp > 38:
print("Fever")
else:
print("No fever")
Identify the input and output in a diabetes screening algorithm.
Input: age, BMI, glucose; Output: diagnosis (e.g., diabetes or prediabetes).
How do you access the first item in a list?
list_name[0]
What does this code print: if True: print("Yes") else: print("No")
Yes
What is telemedicine and one benefit of it?
Telemedicine: delivering healthcare remotely using technology; Benefit: accessibility for remote patients.
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)
Write an algorithm to check if a patient is at high risk (age > 65 and cough).
if age > 65 and cough:
print("High risk")
Create a dictionary with keys: 'name', 'age'.
patient = {"name": "John", "age": 30}
Diagnose this code: age = 70; if age < 60: print("Low risk") else: print("High risk")
High risk
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.
Create a loop to print patient names from a list.
for name in patients:
print(name)
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")
How can dictionaries be used to store symptom data?
To map symptoms to their values, e.g., {"fever": True, "cough": False}
What is the error in: if temp = 38: print("Fever")?
The error is using = instead of == in the condition.
Describe one real-world application of wearable health tech.
Wearable tech: smartwatches monitor heart rate, oxygen, sleep, alerting users and doctors in real-time.
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")
Build a logic: if heart rate > 100 and BP < 90 → alert.
if heart_rate > 100 and bp < 90:
print("Alert: possible shock")
Create a dictionary for patient A with nested symptoms.
patient = {"name": "Alice", "symptoms": {"fever": True, "cough": True}}
What does this code do? symptoms = {"cough": True, "fever": False}; if symptoms["cough"]: print("Check lungs")
Prints Check lungs because "cough" is True.