SYSC 1005 Lecture Notes - Lecture 3: Mental Model

98 views2 pages

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 .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents