Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

3 Curiosities of Python Boolean

Peter Barrett Bryan
Python in Plain English
3 min readMar 24, 2021

--

1. ‘True is False is False’…. is ‘False’

2. ‘“Cat” and True is True’… but ‘True and “Cat”’ is “Cat”’

3. ‘{True: “a”, 1: “b”, 1.0: “c”}’… is ‘{True: “c”}’

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in Python in Plain English

New Python content every day. Follow to join our 3.5M+ monthly readers.

Written by Peter Barrett Bryan

Software engineer with specializations in remote sensing, machine learning applied to computer vision, and project management.

No responses yet

Write a response