Untitled
unknown
plain_text
2 years ago
471 B
7
Indexable
weeks = float(input("How many weeks have you already trained? "))
heart_rate = int(input("What is your resting heart rate? "))
if weeks < 3 and weeks > 0 or heart_rate >= 70:
km = 3
else:
if weeks <= 4 and weeks >= 3 and heart_rate < 70:
km = 5
elif weeks >= 5 and heart_rate < 60:
km = 10
else:
weeks >= 5 and heart_rate < 70
km = 8
print("You should run",km,"km in your next running session")Editor is loading...
Leave a Comment