In Python, you have the opportunity either to use a predefined function/method or to write a user-defined function/method. In this discussion, provide at least three criteria that would be used to develop an appropriate method of your choice and the rationale behind the selection of these criteria. Then provide an example of your method declaration and return type. Actively participate in this discussion by providing constructive feedback on the criteria, rationales, and examples posted by your peers. Provide at least one reference to support your findings.
Answer:
There are following criteria to develop an appropriate method :
Example :
def hello():
print("Hello World")
return 1
Please actively participate in this discussion by providing constructive feedback on the criteria, rationales, and examples posted by your peers.
Hope you like it
Any Query? Comment Down!
I have written for you, Please upvote the answer as it encourage us to serve you Best !
Get Answers For Free
Most questions answered within 1 hours.