Puzzle 14: Explanation

We’ll go over the concept of short-circuit operators in Python and why the code does not raise an exception.

We'll cover the following

Let’s try it!

Try running the code below to verify the result:

Get hands-on with 1200+ tech skills courses.