ā back to unit
Medium
# power tools medium
Points Per Player
The scoreboard feed is a jumbled stream of name:points events ā untangle one player's day. š
You get the events and then one player name. Add up that player's points across all their events and print the total (0 if they never scored).
Example:
Input: events = ["mia:5", "leo:3", "mia:2", "kai:7", "mia:1"], player = "mia"
Output: 8
Mia's points across all her events add up: 5 + 2 + 1 = 8.
š” need a hint?
pt-points-per-player.pyš given lines are locked ā write your code in between
loading...