Skip to content

Instantly share code, notes, and snippets.

View MrExtinct27's full-sized avatar
🤩

Yash Mahajan MrExtinct27

🤩
  • Fullerton, California
View GitHub Profile
@MrExtinct27
MrExtinct27 / polkadot.py
Last active April 30, 2026 06:33
Angelica polkadot score challenge
import re
def computePolkadotScore(art):
lines = art.split('\n')
# Find the eyes line: it has both pupils, written as "() ... ()"
eye_line = next(line for line in lines if line.count('()') >= 2)
# Both pupils combined: each "()" is 2 chars, so 4 chars total
pupil_chars = eye_line.count('()') * 2