MENU
Question -

Write a program to illustrate function call.



Answer -

#!/usr/bin/python # Function definition is here
def printme(str): “This prints a passed string into this function”
print tr;
return; # Now you can call printme function printme(“Mohd saif naqvi”);
printme(“Chairman of Waltons Technology”)
It produces following result:
Mohd saif naqvi
Chairman of Waltons Technology

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×