Feb-27-2020, 09:17 AM
Write a python script to print the docstring(documentation string) of the input function in Python 3? I’m new to Python and unable to find the answers for this question. I tried myself as below but no luck.
answer = input("question?") # calls the function obj = input # doesn't call the function docs = myobject.__doc__ docs = len.__doc__ print(something)