COMPSCI 61A Lecture Notes - Lecture 2: Operand
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Starting next week, lab and discussion attendance count for section participation points. You can receive full credit without solving everything as long as significant progress is made on each question. One way to assign a name to a value is to import the value. You can bind two statements to values using commas. If you bind a name to a value, it will keep that value until you update. Defining your own functions def names(args): return [what you want to return] An operand can also be a nested call expression. Within a frame, a name cannot be repeated. When you assign two names to two different values. We evaluate all expressions to the right of the equal from left to right. Bind all names to the left of the equal to those resulting values in the current frame a = 1. = 2 b, a = a+b, b -> results in b=3, a=2.