COMPSCI 61A Lecture Notes - Geometric Shape

57 views2 pages
23 Oct 2013
School
Professor
zogo39484755 and 6 others unlocked
COMPSCI 61A Full Course Notes
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents

Document Summary

A function"s domain is set of all inputs possibly take as argument. A function"s range is set of all output values it returns. A function"s behavior is relationship it creates between input & output. Give each function exactly one job (dry, don"t repeat yourself) Default arguments (feature of python) use only one argument by defining after ( price, sales_tax=0. 09) after(5) Assert 3 > 2, " math is broken today" Assert 2 > 3, "i said 2 is bigger" Common structure among functions may be computational process, not a number separate definition for variable/ changing functions. Function defined within other function bodies bound to names in local frame. Higher order funciton: a function that takes function as argument value or return functions. Every user defined function has a parent frame (often global) The parent of a function is the frame which it was defined. The parent of a frame is the parent of function called.

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