Python 101 – Dealing With Input Errors, Loops, Lists, & Debugging

February 7, 2024

Kaur Hendrikson fixes the errors from Part 1. Then he adds complexity, teaching more foundational Python concepts, as we skill up.


Series

Part 2 – Error handling, using loops, and if/else/elif statements

In this Insight, we tackle the problem we left off in the last Insight – an error that occurs upon entering something other than a valid integer. After solving that, we add support for more than two numbers and a choice between adding and multiplying them.

In tackling the above problems, you’ll learn how to troubleshoot – and build your code – by writing down what you’re trying to accomplish. Using plain language comments to describe your intentions adds great clarity to the code you’ll be writing. And if anyone needs to read your code in the future, it makes it easy for them to understand your intentions.

Key takeaways from this Insight

Member Content

Sorry... the rest of this content is for members only. You'll need to login or Join Now to continue (your career will thank you!).

Need more information about our memberships? Click to learn more.

Membership options
Member Login

Are you using our app? For the best experience, please login using the app's launch screen


Is your career calling out for help?

Answer the call with a Mixing Light Membership. Gain client-tested tips, workflows, and add new skillsets from our pro Contributors!


JOIN NOW! You don't have to do this alone!
Loading...