Teo_Yanchev

futball_scores_9-10-03-2019_exam

Jul 21st, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. first_match = input()
  2. second_match = input()
  3. third_match = input()
  4.  
  5. won = 0
  6. lost = 0
  7. draw = 0
  8.  
  9. if int(first_match[0]) > int(first_match[2]):
  10. won += 1
  11. elif int(first_match[0]) < int(first_match[2]):
  12. lost += 1
  13. elif int(first_match[0]) == int(first_match[2]):
  14. draw += 1
  15. if int(second_match[0]) > int(second_match[2]):
  16. won += 1
  17. elif int(second_match[0]) < int(second_match[2]):
  18. lost += 1
  19. elif int(second_match[0]) == int(second_match[2]):
  20. draw += 1
  21. if int(third_match[0]) > int(third_match[2]):
  22. won += 1
  23. elif int(third_match[0]) < int(third_match[2]):
  24. lost += 1
  25. elif int(third_match[0]) == int(third_match[2]):
  26. draw += 1
  27. print(f"Team won {won} games.")
  28. print(f"Team lost {lost} games.")
  29. print(f"Drawn games: {draw}")
Advertisement
Add Comment
Please, Sign In to add comment