Saturday, November 16, 2019

type() functions

type() functions


It returns type of the given object.
Syntax:
type(object)

Syntax:
type(name, bases, dict)
_name_ : Class name.
_bases_ : A possibly empty tuple containing the bases classes.
_dict_ : Dictionary containing the class’s namespace.

No comments:

Post a Comment