Function is a built in program. 
1.      
Needs a parameters
a.      
Pow (5,4) is the same as 5**4
                                                                          
i.     
5 and 4 are parameters
abs ( -5) is a absolute value function
Module
1.      
Have to be imported
2.      
Import math <press enter>
a.      
math.floor (18.7)
b.     
math.sqrt 
(81)
c.      
square = math.sqrt; use variable name assigned
to function/module
 Modules as variables
No comments:
Post a Comment