fluentpython/example-code-2e

Example 8-17 - Different output from expected

CavalcanteLucas opened this issue · 1 comments

Hello,

Can someone please help me understand what am I doing wrong?
The example 8-17 shows this expected output:

image

But this is what I got instead:
image

I also tried that in the console session (using IPython v.7.29.0):
image

Is it something that might be related to different python versions (mine is 3.8.10)?
Sorry if this is outdated.

Hope to hear from you,
Kind regards

Oh, one must use python to open the session, not ipython. Apologies for the false alarm.

image