Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tourney = int(input())
- points = int(input())
- win = 0
- total = 0
- for i in range(tourney):
- stage = input()
- if stage == "W":
- total += 2000
- win += 1
- elif stage == "F":
- total += 1200
- elif stage == "SF":
- total += 720
- print(f"Final points: {total + points}")
- print(f"Average points: {int(total / tourney)}")
- print(f"{win / tourney * 100:.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement