This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def computePolkadotScore(angelica_art: str) -> int: | |
| rows = angelica_art.splitlines() | |
| # The polkadots on the dress are shown as capital O's. | |
| dots_on_dress = 0 | |
| for row in rows: | |
| dots_on_dress += row.count("O") | |
| return dots_on_dress |