Not short or elegant, but it works. I think this is the point where I should start looking at more advanced functions instead of doing everything with for loops and if statements.
https://github.com/TijmenK/AoC2020/blob/main/day18.py
@Tijmen started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Not short or elegant, but it works. I think this is the point where I should start looking at more advanced functions instead of doing everything with for loops and if statements.
https://github.com/TijmenK/AoC2020/blob/main/day18.py