Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- team = input()
- match = int(input())
- w = 0
- d = 0
- l = 0
- for i in range(match):
- result = input()
- if result == "W":
- w += 1
- elif result == "D":
- d += 1
- elif result == "L":
- l += 1
- if match == 0:
- print(f"{team} hasn't played any games during this season.")
- else:
- print(f"{team} has won {w * 3 + d} points during this season.")
- print("Total stats:")
- print(f"## W: {w}")
- print(f"## D: {d}")
- print(f"## L: {l}")
- print(f"Win rate: {w / match * 100:.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement