SYSC 1005 Lecture Notes - Lecture 3: Mental Model
Document Summary
Start to develop a mental model of computation. Students should be able to trace the execution of programs. Understanding the execution of programs vs memorizing chunks of code. ** we use a web-based tool to build and run experiments. Frames tell python where to find the objects in memory. ** in the code: x = 7 y = 5 z = x + y. # if we now bind a to a different value, does python recalculate a + b and bind the new value bound to c, does python act like a spreadsheet? a = 4. Answer: no, python does not act like a spreadsheet, it does not go back and reevaluate c when a is bound to a new value. The variable c is bound to the value that is produced when a is added to b vs the expression a + b .