A lot of the Python code you’ll write is unconditional. That’s, the code doesn’t make any decisions. Each line of code is executed within the order that it’s written or within the order that features are referred to as, with attainable repetitions inside loops.
On this course, you’ll discover ways to use conditional logic to jot down packages that carry out completely different actions based mostly on completely different situations. Paired with features and loops, conditional logic lets you write complicated packages that may deal with many various conditions.
On this Python Fundamentals video course, you’ll discover ways to:
- Examine the values of two or extra variables
ifstatements to manage the circulate of your packages
- Deal with errors with
- Apply conditional logic to create simulations
This video course is a part of the Python Fundamentals collection, which accompanies Python Fundamentals: A Sensible Introduction to Python 3. You can too try the opposite Python Fundamentals programs.