Advertisement
exDotaPro

9_march_2019_2_football_results

Jan 10th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. first_game_result = input()
  2. second_game_result = input()
  3. third_game_result = input()
  4.  
  5. wins = 0
  6. draws = 0
  7. loses = 0
  8.  
  9. len(first_game_result)
  10. first_digit = first_game_result[0]
  11. second_digit = first_game_result[2]
  12.  
  13. if first_digit > second_digit:
  14.     wins += 1
  15. elif first_digit == second_digit:
  16.     draws += 1
  17. else:
  18.     loses += 1
  19.  
  20. len(second_game_result)
  21. first_digit = second_game_result[0]
  22. second_digit = second_game_result[2]
  23.  
  24. if first_digit > second_digit:
  25.     wins += 1
  26. elif first_digit == second_digit:
  27.     draws += 1
  28. else:
  29.     loses += 1
  30.  
  31. len(third_game_result)
  32. first_digit = third_game_result[0]
  33. second_digit = third_game_result[2]
  34.  
  35. if first_digit > second_digit:
  36.     wins += 1
  37. elif first_digit == second_digit:
  38.     draws += 1
  39. else:
  40.     loses += 1
  41.  
  42. print(f'Team won {wins} games.')
  43. print(f'Team lost {loses} games.')
  44. print(f'Drawn games: {draws}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement