Last Updated: October 13, 2016
·
300
· debbora

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.