Ch 8 (1)
Ch 8 (1)
python
Ch 8
What is Function
Example of defining a function
def Add1(a,b):
C=a+b
Return(c)
Components of functions
• Name of Function Add1
• Arguments a,b
• Statements C=a+b
• Return value Return(c)
Built in function in python are: