Python Basics: Finding and Fixing Code Bugs

Python Basics: Finding and Fixing Code Bugs
by:
blow post content copied from  Real Python
click here to view original post


Everyone makes mistakes—even seasoned professional developers!

IDLE is pretty good at catching mistakes like syntax errors and run-time errors, but there’s a third type of error that you may have already experienced. Logic errors occur when an otherwise valid program doesn’t do what was intended.

Logic errors cause unexpected behaviors called bugs. Removing bugs is called debugging, and a debugger is a tool that helps you hunt down bugs and understand why they’re happening.

Knowing how to find and fix bugs in your code is a skill that you will use for your entire coding career!

In this Python Basics video course, you’ll:

  • Learn how to use IDLE’s Debug Control window
  • Practice debugging on a buggy function
  • Learn alternative methods for debugging your code

[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]


August 02, 2022 at 07:30PM
Click here for more details...

=============================
The original post is available in Real Python by
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================

Salesforce