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 computePolkadotScoreAngelica(ascii_art): | |
| # Step 1: Identify lips row (the row that contains the sequence of ',' representing lips) | |
| lips_row = None | |
| lips_str = None | |
| for row in ascii_art: | |
| # Find a sequence of at least 5 ',' characters to identify lips | |
| if ',,,,' in row: | |
| lips_row = row | |
| start_index = row.index(',,,') | |
| # Extend lips_str to include all contiguous , characters |