[ prog / sol / mona ]

prog


[challenge] Try to rewrite SICP [urgent]

4 2022-08-15 23:06

A program that assumes SICP was only a sequence of closing parentheses:

import os
from pathlib import Path
sicp = Path('sicp.md').read_text()
count = 0
for i in range(1223834):
        if (sicp[i] == ")"):
                count = count + 1
print("score: " + str(count))
$ python dumbshit.py
score: 14799

Mind you, I get the same result with an opening parenthesis.

14


VIP:

do not edit these