In order to get a practical idea of how you can use Thonny’s features, you’re going to create and debug a program. You’ll start by importing
calculator.simple and then create a new instance of
Then, you’ll introduce a bug to the program. You’ll add a function with a docstring. After you try to call the function, you’ll use the debugger to see what went wrong. You’ll start by opening up the Variables window to see what’s happening as the program runs.