Nov-23-2019, 02:02 PM
(This post was last modified: Nov-23-2019, 02:02 PM by Gribouillis.)
systolic_blood_pressure
is a function. It must be called with parentheses ()
elif systolic_blood_pressure() >= 180:Apart from that, pythonistas usually avoid
eval()
for security reasons. In your case, you could use ast.literal_eval()
instead of eval()
. Import ast
first. Also as you're entering numbers, you could simply use int()
or float()
, which is better than evalb = float(input("Please enter SBP: "))