0

What is output of this program ?

def docFunction(): "python is cool language" return 1 print docFunction.__doc__[10:14]

13th Apr 2017, 11:11 AM
Rajendra Prasad Naik
Rajendra Prasad Naik - avatar
1 Answer
+ 2
In Python 3, you will get an error message, but assuming you fix the parentheses, you will get a slice of the docstring.
13th Apr 2017, 12:59 PM
Tob
Tob - avatar