0

When I use foo = help('module') in code, it displays the help message in console. Is there a way to gather the data from help() without displaying a message? Code:

foo = help("module")
print(foo)

Output:

A module is...
A module is...

Expected (Wanted) Output:

A module is...

I want to get rid of the first output ("A module is...") when I do foo = help("module")

  • Welcome to stack overflow! It's not clear what you're asking for. What is your expected output, and what have you tried so far? Are you trying to save the output to a variable, pipe it to a text file? Something else? Please [edit] to make a [mcve] so that we can answer better – G. Anderson Aug 16 '21 at 16:30

0 Answers0