Python Brain Teasers:

Title: Brainteaser
Name of book: Python Brain Teasers Exercise Your Mind (page 7)
Example: needs extra action for international users (page 7)

In the example, I was only able to achieve the desired result if I added the following line to the top of my file:
# -*- coding: utf-8 -*-

Thanks! The coding line is required only in Python 2 (which is no longer supported). Python 3 source files are utf-8 encoded by default.