Class Notes (839,113)
Canada (511,191)
CMPT 120 (49)
Greg Baker (15)


2 Pages

Computing Science
Course Code
CMPT 120
Greg Baker

This preview shows 80% of the first page. Sign up to view the full 2 pages of the document.
10192007CMPT120DebuggingYou will make mistakes when programmingoFixing them is a big part of the processDont start coding until you know what you want your program to dooNo hope of succeeding if notoYou should have an algorithm in mind or written down before writing codeoHow to do that in Python comes nextFinding errors can be very hardoParts of the program can have effects you didnt expectoCause of the problem might not be anywhere near the symptomThere are three main categories of errorsoSyntax errorsWhat you have typed isnt legal Python codeA SyntaxError in PythonCommon errorsBad indentationoegif x0printprintmismatched quotesbracketsoegprint Hello worldx1yzlens vs oRuntime errorsWhile the program is running it hits something it cant handleegprint xNameError
More Less
Unlock Document

Only 80% of the first page are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.