Data Handling Part 6 Ip New
Data Handling Part 6 Ip New
Example
>>> 100/0
ZeroDivisionError
>>>int(‘11ab’)
ValueError
Debugging using code tracing
Most common technique to debug an error is to find the point of
error and origin of error.
This is often done by printing the values of every intermediate
results and of all values.
For this code tracing is one most commonly used technique.
Code tracing means executing code one line at a time and watching
its impact on variables.
One way of code tracing is dry run .(explained in earlier lesson)
Code tracing can also be done by debugging tools or debug
available in software form.