Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resultFirstMatch = input()
- resultSecondMatch = input()
- resultThirdMatch = input()
- results = [resultFirstMatch, resultSecondMatch, resultThirdMatch]
- won = 0
- draws = 0
- loses = 0
- for i in range(len(results)):
- arr = results[i].split(":")
- if arr[0] > arr[1]:
- won += 1
- elif arr[0] < arr[1]:
- loses += 1
- else:
- draws += 1
- print(f"Team won {won} games.")
- print(f"Team lost {loses} games.")
- print(f"Drawn games: {draws}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement