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
| # takes pattern as a txt file | |
| import sys | |
| def compute_polkadot_score(ascii_art): | |
| lines = ascii_art.split('\n') | |
| # 1. Find lips x-range: ('''''' ®'''''''') | |
| # No ' , or - in lips → boundary chars are ( and ) | |
| lips_start = lips_end = -1 | |
| for line in lines: |
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
| # This takes input txt file for the ascii pattern | |
| import sys | |
| def compute_polkadot_score(ascii_art): | |
| lines = ascii_art.split('\n') | |
| # 1. Find lips x-range: ('''''' ®'''''''') | |
| # No ' , or - in lips → boundary chars are ( and ) | |
| lips_start = lips_end = -1 | |
| for line in lines: |