Advertisement
bl00dt3ars

02. Football Results

Nov 11th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. first = input()
  2. second = input()
  3. third = input()
  4. won = 0
  5. lost = 0
  6. drawn = 0
  7.  
  8. if first[0] > first[2]:
  9.     won += 1
  10. elif first[0] == first[2]:
  11.     drawn += 1
  12. elif first[0] < first[2]:
  13.     lost += 1
  14.  
  15. if second[0] > second[2]:
  16.     won += 1
  17. elif second[0] == second[2]:
  18.     drawn += 1
  19. elif second[0] < second[2]:
  20.     lost += 1
  21.  
  22. if third[0] > third[2]:
  23.     won += 1
  24. elif third[0] == third[2]:
  25.     drawn += 1
  26. elif third[0] < third[2]:
  27.     lost += 1
  28.  
  29. print(f"Team won {won} games.")
  30. print(f"Team lost {lost} games.")
  31. print(f"Drawn games: {drawn}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement