▶ Run
# run x = float(input("Red blood cells, RBC in millions cells/mcL ")) if x < 3.9: print("Low red blood cell count") elif x > 5.72: print("High red blood cell count") else: print("Normal red blood cell count") wbc = float(input("White blood cells, WBC cells/mcL ")) if wbc < 3500: print("Low white blood cell count") elif wbc > 10500: print("High white blood cell count") else: print("Normal white blood cell count") pla = float(input("Platelets ")) if pla < 150000: print("Low platelet count") elif pla > 450000: print("High platelet count") else: print("Normal platelet count") hemo = float(input("Hemoglobin in g/dL ")) if hemo < 12.0: print("Low hemoglobin") elif hemo > 17.5: print("High hemoglobin") else: print("Normal hemoglobin") hematocrit = float(input("Hematocrit % ")) if hematocrit < 34.9: print("Low hematocrit") elif hematocrit > 17.5: print("High hematocrit") else: print("Normal hematocrit") bun = float(input("BUN, blood urea nitrogen in mg/dL ")) if bun < 6: print("Low blood urea nitrogen") elif bun > 20: print("High blood urea nitrogen") else: print("Normal blood urea nitrogen") cre = float(input("creatinine in mg/dL ")) if cre < 0.6: print("Low creatinine") elif cre > 1.3: print("High creatinine") else: print("Normal creatinine") glu = float(input("Glucose in mg/dL ")) if glu < 70: print("Low Glucose") elif glu > 99: print("High Glucose") else: print("Normal Glucose") alb = float(input("Albumin in g/dL ")) if alb < 3.4: print("Low Albumin") elif alb > 5.4: print("High Albumin") else: print("Normal Albumin") co = float(input("CO2, carbon dioxide or bicarbonate in mEq/L ")) if co < 23: print("Low carbon dioxide") elif co > 29: print("High carbon dioxide") else: print("Normal carbon dioxide") ca = float(input("Ca, calcium in mEq/L ")) if ca < 136: print("Low calcium") elif ca > 145: print("High calcium") else: print("Normal calcium") na = float(input("Na, sodium in mEq/L ")) if na < 3.5: print("Low sodium") elif na > 5.1: print("High sodium") else: print("Normal sodium") cl = float(input("Cl, chloride in mEq/L ")) if cl < 98: print("Low chloride") elif cl > 107: print("High chloride") else: print("Normal chloride") alk = float(input("Alkaline phosphatase in U/L ")) if alk < 20: print("Low Alkaline phosphatase") elif alk > 130: print("High Alkaline phosphatase") else: print("Normal Alkaline phosphatase") alt = float(input("ALT, alanine aminotransferase in U/L ")) if alt < 4: print("Low alanine aminotransferase") elif alt > 36: print("High alanine aminotransferase") else: print("Normal alanine aminotransferase") ast = float(input("AST, aspartate aminotransferase in U/L ")) if ast < 8: print("Low aspartate aminotransferase") elif ast > 33: print("High aspartate aminotransferase") else: print("Normal aspartate aminotransferase") pot = float(input("Potassium in mEq/L ")) if pot < 3.7: print("Low Potassium") elif pot > 5.2: print("High Potassium") else: print("Normal Potassium") sod = float(input("Sodium in mEq/L ")) if sod < 135: print("Low Sodium") elif sod > 145: print("High Sodium") else: print("Normal Sodium") bil = float(input("Total bilirubin in mg/dL ")) if bil < 0.1: print("Low bilirubin") elif bil > 1.2: print("High bilirubin") else: print("Normal bilirubin") pro = float(input("Total protein in g/dL ")) if pro < 6.0: print("Low protein") elif pro > 8.3: print("High protein") else: print("Normal protein") tc = float(input("Total cholesterol in g/dL ")) if tc < 200: print("Normal cholesterol") elif tc > 200: print("High cholesterol") hdl = float(input("HDL cholesterol in mg/dL ")) if hdl < 40: print("Low HDL Cholesterol") elif hdl > 60: print("Normal HDL cholesterol") ldl = float(input("LDL cholesterol in mg/dL ")) if ldl < 100: print("Normal LDL cholesterol") elif ldl > 100: print("High LDL cholesterol") tri = float(input("triglycerides in mg/dL ")) if tri < 150: print("Normal triglycerides") elif tri > 150: print("High triglycerides") print("This project was made during the High Tech Hacks Hackathon")