Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Using the Python or Operator (Overview)

There are three Boolean operators in Python: and, or, and not. With them, you can test conditions and decide which execution path your programs will take. In this tutorial, you’ll take a deep dive into the Python or operator and how to use it.

By the end of this course, you’ll have learned:

  • How the Python or operator works
  • How to use the Python or operator in Boolean and non-Boolean contexts
  • What kind of programming problems you can solve by using or in Python
  • How to read and better understand other people’s code when they use some of the special features of the Python or operator

You’ll learn how to use the Python or operator by building some practical examples. Even if you don’t really use all the possibilities that the Python or operator offers, mastering it will allow you to write better code.

Download

Sample Code (.zip)

4.6 KB
Download

Course Slides (.pdf)

1.7 MB

Become a Member to join the conversation.