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 (we hope you do!).
Need more information about our memberships? Click to learn more.
Membership optionsMember Login