class HealthMonitor:
def __init__(self):
self.heart_rate = 0
self.blood_pressure = "120/80"
self.body_temperature = 98.6
def measure_heart_rate(self):
# Simulate heart rate measurement
# In a real-world scenario, this would involve interfacing with sensors.
self.heart_rate = 75 # Example heart rate value
def measure_blood_pressure(self):
# Simulate blood pressure measurement
# In a real-world scenario, this would involve interfacing with sensors.
self.blood_pressure = "122/78" # Example blood pressure values
def measure_body_temperature(self):
# Simulate body temperature measurement
# In a real-world scenario, this would involve interfacing with sensors.
self.body_temperature = 98.7 # Example body temperature value
# Example of using the HealthMonitor class
if __name__ == "__main__":
health_monitor = HealthMonitor()
health_monitor.measure_heart_rate()
print(f"Heart Rate: {health_monitor.heart_rate} bpm")
health_monitor.measure_blood_pressure()
print(f"Blood Pressure: {health_monitor.blood_pressure} mmHg")
health_monitor.measure_body_temperature()
print(f"Body Temperature: {health_monitor.body_temperature} °F")