Debugging in Python
Console
-
dir(10)
: will list off all the methods you can call for an integer. -
help(10)
: will list it's class help and its available methods.
Both methods above, also works without arguments:
- dir()
shows built-in methods
- help()
opens an interactive help, very usefull.
Written by Débora Fernandes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#