help()
Lesson 1 Chapter 1
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
Leave a comment
Comment as a guest: