COMPSCI 61A Lecture Notes - Lecture 2: Operand

29 views2 pages
zogo39484755 and 6 others unlocked
COMPSCI 61A Full Course Notes
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.

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