Sitemap
Better Programming

Advice for programmers.

Follow publication

Member-only story

Boolean Operators in Python Aren’t What You Think

3 min readJun 4, 2021

--

Maze
Photo by Mitchell Luo on Unsplash
if 1 and 0:
print("You will never see this...")
if 1 or 0:
print("But this you will see!")

--

--

Omar Sharaki
Omar Sharaki

Written by Omar Sharaki

Software developer, standup comedian, and guy you wouldn’t mind sitting next to on a plane.

Responses (3)