ITI 1120 Chapter Notes - Chapter 3: Memory Address, Local Variable, Function Object
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.