Hi @JacobTomaw. It’s probably a problem in the encoding of the PDF (trust me, I tried )
Take a look at the code in https://github.com/tebeka/python-brain-teasers and let me know if you have an issue - it prints 7 for me:
$ python --version
Python 3.8.3
$ python city.py
7