ITI 1120 Chapter Notes - Chapter 3: Memory Address, Local Variable, Function Object

54 views5 pages

Document Summary

Python comes with many built-in functions that perform common operations. Ex) abs - which produces the absolute value of a number. General form of a function call is as follows: Here are the rules to executing a function call: evaluate each argument one at a time, working from left to right, pass the resulting values into the function, execute the function. When the function call finishes, it produces a value. Because function calls produce values, they can be used in expression. Some of the most useful functions are ones that convert from one type to another. Type names int and float can be used as functions: *****>>>help(function name) will tell that that built in function can do. Another builtin function is round which rounds a floating-point number to the nearest integer. >>>round(the name you want to round, the decimal place you what tat number rounded) pow - gives the power of a number.

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