# Python Brain Teasers: Teaser 3 wrong answer

**URL:** <https://forum.devtalk.com/t/python-brain-teasers-teaser-3-wrong-answer/1279>\
**Category:** PragProg Customers\
**Tags:** book-python-brain-teasers, errata\
**Created:** [7 August 2020 15:56 UTC](https://forum.devtalk.com/t/python-brain-teasers-teaser-3-wrong-answer/1279 "2020-08-07T15:56:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tebeka](https://forum.devtalk.com/user_avatar/forum.devtalk.com/tebeka/32/806_2.png) [@tebeka](https://forum.devtalk.com/u/tebeka)\
**Post date:** [10 August 2020 13:25 UTC](https://forum.devtalk.com/t/python-brain-teasers-teaser-3-wrong-answer/1279/2 "2020-08-10T13:25:17Z")

</div>

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](https://github.com/tebeka/python-brain-teasers) and let me know if you have an issue - it prints 7 for me:

```auto
$ python --version
Python 3.8.3
$ python city.py  
7

```

---

_[View the full topic](https://forum.devtalk.com/t/python-brain-teasers-teaser-3-wrong-answer/1279)._
