Introduction to Conditional Logic in Python: Python Basics

Much of the Python code you’ll write is unconditional. That is, the code does not make any choices. Every line of code is executed in the order that it’s written or in the order that functions are called, with possible repetitions inside loops. This video is an introduction to using conditional logic to write programs that perform different actions based on different conditions. This is a portion of the complete course, which you can find here: The rest of the course covers: - Handling errors with try and except - How to apply conditional logic to create simulations - Recovering from errors - Creating nested if statements
Back to Top