Python:Common Mistakes
Jump to navigation
Jump to search
Overview
This page is designed as a resource for new programmers learning Python for EGR 103. If you are an experiencing an error with which you are not familiar, check the common mistakes below first.
Problems with Variables
These are problems involving the use, saving, and manipulation of variables, often encountered during the first half of the labs in EGR 103.
Assignment vs. Accessing
Calculating in a Vacuum
Mutable and Immutable Data Types
Problems with Methods
These are problems involving the writing and use of methods, often encountered during the second half of the labs in EGR 103.
Printing vs. Returning
Methods that Return and Methods that Modify
Miscellaneous
These are other logic errors or configuration problems you may encounter, as well as some useful debugging practices.
For Loops vs. For-Each Loops
See also: Enumerate