In this course, you practiced what you learned in Python Basics: Conditional Logic and Control Flow. You can now confidently compare values using comparison operators like <
, >
, <=
, >=
, !=
, and ==
. You’ve also accomplished a lot by building complex conditional statements using and
, or
, and not
.
You also controlled the flow of your program using if
statements. You created branches in your program using if
… else
and if
… elif
… else
. You also managed to control precisely how code is executed inside an if
block using break
and continue
.
You got some experience with the try
… except
pattern to handle errors that may occur during runtime. This is an important construct that allows your programs to handle the unexpected gracefully and keep users happy that the program didn’t crash.
For more information on the concepts covered in this course, check out the following tutorials:
- Conditional Statements in Python
- Using the “and” Boolean Operator in Python
- Using the “or” Boolean Operator in Python
- Using the “not” Boolean Operator in Python
- Python “for” Loops (Definite Iteration)
- Python “while” Loops (Indefinite Iteration)
- Python Exceptions: An Introduction
Or you can explore the following video courses:
- Conditional Statements in Python (
if
/elif
/else
) - Using the Python
and
Operator - Using the Python
or
Operator - Using the Python
not
Operator for
Loops in Python (Definite Iteration)- Mastering
while
Loops - Raising and Handling Python Exceptions
To continue your Python learning journey, check out the other Python Basics courses. You might also consider getting yourself a copy of Python Basics: A Practical Introduction to Python 3.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Steinar Martinussen on Nov. 19, 2023
I made this work with just conditional logic and flow. As the instructor was defining his own functions to not repeat himself, I felt I was missing some knowledge around those. Maybe we seen basic stuff of it so far, but not how to pass values, how the return statement work etc. So I made the whole thing work great, but still felt that I could’ve done better if there were more around defining own functions before in the learning path. However, I will find some info about this and dig into it myself since I’m now intrigued