Python - Calculate Mean Arterial Pressure
by matt392 in Circuits > Software
62 Views, 1 Favorites, 0 Comments
Python - Calculate Mean Arterial Pressure
Python code below and attached
===============================
print ("Calculating Mean Arterial Pressure")
print ("Determined by systolic pressure and the diastolic pressure.")
print ("A measurement below 60 is not enough to get enough oxygen.")
# MeanArterialPressure: (DiastolicPressure + (.3 * (SystolicPressure-DiastolicPressure)))
EnteredDiastolicPressure = input ("Enter the Diastolic Pressure: ")
EnteredSystolicPressure = input ("Enter the Systolic Pressure: ")
# Convert to float
DiastolicPressure = float(EnteredDiastolicPressure)
SystolicPressure = float(EnteredSystolicPressure)
MeanArterialPressure = (DiastolicPressure + (.3 * (SystolicPressure-DiastolicPressure)) )
print ("The Mean Arterial Pressure is: ", MeanArterialPressure)
print ("Thank you to fxsolver.com for assistance with this equation.")