Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vanus = int(input("Sisestage enda vanus: "))
- sugu = input("Sisestage enda sugu: ")
- treeninguTüüp = input("Sisestage treeningu tüüp: ")
- MpulsiSagedus = int(220-vanus)
- NpulsiSagedus = int(round(206-(vanus/100*88)))
- if treeninguTüüp == "1" and (sugu == "m" or sugu == "M"):
- print("Pulsidagedus peaks olema vahemikus " + str(int(round(MpulsiSagedus/100*50))) + " kuni " + str(int(round(MpulsiSagedus/100*70))))
- elif treeninguTüüp == "1" and (sugu == "n" or sugu == "N"):
- print("Pulsisagedus peaks olema vahemikus " + str(round(NpulsiSagedus/100*50)) + " kuni " + str(round((NpulsiSagedus/100*70))))
- elif treeninguTüüp == "2" and (sugu == "m" or sugu == "M"):
- print("Pulsidagedus peaks olema vahemikus " + str(round(MpulsiSagedus/100*70)) + " kuni " + str(round(MpulsiSagedus/100*80)))
- elif treeninguTüüp == "2" and (sugu == "n" or sugu == "N"):
- print("Pulsisagedus peaks olema vahemikus " + str(round(NpulsiSagedus/100*70)) + " kuni " + str(round(NpulsiSagedus/100*80)))
- elif treeninguTüüp == "3" and (sugu == "m" or sugu == "M"):
- print("Pulsidagedus peaks olema vahemikus " + str(round(MpulsiSagedus/100*80)) + " kuni " + str(round(MpulsiSagedus/100*87)))
- elif treeninguTüüp == "3" and (sugu == "n" or sugu == "N"):
- print("Pulsisagedus peaks olema vahemikus " + str(round(NpulsiSagedus/100*80)) + " kuni " + (str(round(NpulsiSagedus/100*87))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement