Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
471 B
1
Indexable
Never
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")
Leave a Comment