Video 3: First Statements (page 4 of 6) |
The type() function is used to determine an object's class or data type. Given that everything in Python3 is an object, this function can help us debug and determine what actions we can take on an object. The type of object will determine what properties, methods, and functions are available.
The dir() function will show all of the available methods, properties, and functions available for an object (e.g., dir('tom')). Finally, executing help('modules') will display all of the installed modules with the current interpreter.