Python Forum
How to print the docstring(documentation string) of the input function ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to print the docstring(documentation string) of the input function ?
#1
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)
Reply


Messages In This Thread
How to print the docstring(documentation string) of the input function ? - by Kishore_Bill - Feb-27-2020, 09:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Input function Fabio87 11 6,011 Apr-29-2022, 03:50 PM
Last Post: Alex143
Bug How to print only vowels from an input? PP9044 8 7,567 Feb-26-2021, 04:02 PM
Last Post: Serafim
  Reading a text until matched string and print it as a single line cananb 1 2,036 Nov-29-2020, 01:38 PM
Last Post: DPaul
  Print user input into triangle djtjhokie 1 2,388 Nov-07-2020, 07:01 PM
Last Post: buran
  Why does this function print empty list? hhydration 1 1,540 Oct-28-2020, 02:03 AM
Last Post: deanhystad
  Question on "define function"; difference between return and print extricate 10 4,728 Jun-09-2020, 08:56 PM
Last Post: jefsummers
  Adding string numbers, while loop and exit without input. Jose 11 7,520 Apr-15-2020, 08:34 AM
Last Post: Jose
  Writing a function that changes its answer based on user input SirRavenclaw 2 2,818 Dec-21-2019, 09:46 PM
Last Post: Clunk_Head
  Print the longest str from user input edwdas 5 4,170 Nov-04-2019, 02:02 PM
Last Post: perfringo
  New to Python - tiny coding assistance on user input function and assign to variable Mountain_Duck 1 2,520 Mar-23-2019, 06:54 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020