Python type() function returns object class

Day 2: Python knowledge refresher TYPE KEYWORD The built-in function type() returns the type of an object. In Python3, everything is an object and thus an instance of a class. Therefore, the built-in function type() can be used to return the class type of the passed variable. Example:

  • graphical user interface, application, Word

To view or add a comment, sign in

Explore content categories