Python’s built-in help() function launches Python’s help system. Without an argument, help() starts an interactive session. With a string argument, help(name) looks up the name and prints a help page to the shell. With a non-string argument, help(object) prints a help page on object. 
>>> help(list)             # Prints the documentation of list
>>> help(dict)             # Prints the documentation of dict
>>> help(int)              # Prints the documentation of int
>>> help('help')           # Prints the documentation of help()
>>> help()                 # Opens an interactive "help" session

5 thoughts on “help()”

  1. For a newbie, bit of a struggle to get to the in-built help from VS Code Terminal. Got there in the end. This should be erm… helpful 😉 going forward. 👍

Leave a Reply

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
Pen