Search This Blog

Get Additional Info- Define a function called 'docstring' which takes one parameter; Digital : Python 3 Programming_FP; Course ID: 55193

Define a function called 'docstring' which takes one parameter. The parameter 'functionname' is a python built-in function name. The function definition code stub is given in the editor. Generate a Docstring of the input function based on condition given below:


* The Docstring must give the maximum information about the function.


Constraints

* Input must be a string

Sample Output:




Answer:
 def docstring(functionname): 
     # Write your code here    
help(functionname)

Click on Image:

No comments:

Post a Comment

If you have any doubts, Please let us know.