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 capabilities are referred to as, with doable repetitions inside loops.
On this course, you’ll discover ways to use conditional logic to put in writing packages that carry out completely different actions based mostly on completely different situations. Paired with capabilities and loops, conditional logic means that you can write complicated packages that may deal with many various conditions.
On this Python Fundamentals video course, you’ll discover ways to:
- Evaluate the values of two or extra variables
- Write
if
statements to regulate the movement of your packages - Deal with errors with
strive
andbesides
- Apply conditional logic to create simulations
This video course is a part of the Python Fundamentals sequence, which accompanies Python Basics: A Practical Introduction to Python 3. You may as well try the opposite Python Basics courses.
Notice that you simply’ll be utilizing IDLE to interact with Python all through this course.