desislava_topuzakova

03. Gymnastics

Nov 14th, 2020
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. # общата оценка
  2. country = input()
  3. instrument = input()
  4. total_grade = 0
  5. if country == "Russia":
  6. if instrument == "ribbon":
  7. total_grade = 9.1 + 9.4
  8. elif instrument == "hoop":
  9. total_grade = 9.3 + 9.8
  10. elif instrument == "rope":
  11. total_grade = 9.6 + 9
  12. elif country == "Bulgaria":
  13. if instrument == "ribbon":
  14. total_grade = 9.6 + 9.4
  15. elif instrument == "hoop":
  16. total_grade = 9.55 + 9.75
  17. elif instrument == "rope":
  18. total_grade = 9.5 + 9.4
  19. elif country == "Italy":
  20. if instrument == "ribbon":
  21. total_grade = 9.2 + 9.5
  22. elif instrument == "hoop":
  23. total_grade = 9.45 + 9.35
  24. elif instrument == "rope":
  25. total_grade = 9.7 + 9.15
  26.  
  27. print(f"The team of {country} get {total_grade:.3f} on {instrument}.")
  28.  
  29. need_grade = 20 - total_grade
  30. need_percent = (need_grade / 20) * 100
  31. print(f"{need_percent:.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment