Ask Question

Which of the following lines of code would print the docstring for the range () function?

A. print (docstring_range)

B. print (range._doc_)

C. print (range.""doc"")

D. print ("range. doc")

+1
Answers (1)
  1. 22 August, 23:51
    0
    B print (range.__doc__)

    Little trick: Most of Python's system stuff's names are double underscore whatever double underscore. Plus trying them all in the interpreter is easier than posting a question.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following lines of code would print the docstring for the range () function? A. print (docstring_range) B. print (range._doc_) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers