advent_of_code

advent of code solves
git clone https://git.pastanoggin.com/advent_of_code.git
Log | Files | Refs

not_quite_lisp.py (198B)


      1 floor = 0
      2 with open("input", encoding="utf-8") as f:
      3     text = f.read()
      4 for char in text:
      5     if char == '(':
      6         floor += 1
      7     elif char == ')':
      8         floor -= 1
      9 print(f"floor is {floor}")