When working in interactive Python, I tend to rely on the built-in help() function to tell me what something expects and/or returns, and print out any documentation
help()