Use the help()
function to view documentation for a given object or datatype:
help(str)
Use the dir()
function to see what methods you can call on a given object.
dir("Hello")
Various modules and third-party packages offer interactive debugging capabilities: