Advertisement
seston

Pulss

Apr 11th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. vanus = int(input("Sisestage enda vanus: "))
  2. sugu = input("Sisestage enda sugu: ")
  3. treeninguTüüp = input("Sisestage treeningu tüüp: ")
  4. MpulsiSagedus = int(220-vanus)
  5. NpulsiSagedus = int(round(206-(vanus/100*88)))
  6. if treeninguTüüp == "1" and (sugu == "m" or sugu == "M"):
  7. print("Pulsidagedus peaks olema vahemikus " + str(int(round(MpulsiSagedus/100*50))) + " kuni " + str(int(round(MpulsiSagedus/100*70))))
  8. elif treeninguTüüp == "1" and (sugu == "n" or sugu == "N"):
  9. print("Pulsisagedus peaks olema vahemikus " + str(round(NpulsiSagedus/100*50)) + " kuni " + str(round((NpulsiSagedus/100*70))))
  10. elif treeninguTüüp == "2" and (sugu == "m" or sugu == "M"):
  11. print("Pulsidagedus peaks olema vahemikus " + str(round(MpulsiSagedus/100*70)) + " kuni " + str(round(MpulsiSagedus/100*80)))
  12. elif treeninguTüüp == "2" and (sugu == "n" or sugu == "N"):
  13. print("Pulsisagedus peaks olema vahemikus " + str(round(NpulsiSagedus/100*70)) + " kuni " + str(round(NpulsiSagedus/100*80)))
  14. elif treeninguTüüp == "3" and (sugu == "m" or sugu == "M"):
  15. print("Pulsidagedus peaks olema vahemikus " + str(round(MpulsiSagedus/100*80)) + " kuni " + str(round(MpulsiSagedus/100*87)))
  16. elif treeninguTüüp == "3" and (sugu == "n" or sugu == "N"):
  17. 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