PPS Unit 3
PPS Unit 3
https://www.studymedia.in/fe/notes
UNIT: III Functions and Modules Lectures:
08 Hrs
• Function: definition, call, variable scope and lifetime, the return statement.
• documentation string,
• Introduction to modules,
BUILT-IN FUNCTION:
USERDEFINE FUNCTION:
sum = x + y
return sum
Example
return #This returns none value
return None #This returns none value
return a, b #This returns two values
return a #This returns single value
gv=100
print("The initial value of gv =", gv)
add_gv(10,20)
print("After function value of gv =",gv)
def func( ):
"""Welcome to Coulomb"""
return
print(func.__doc__)