type()

The type() function is used to determine the data type of an object. This function takes one argument and returns the type of the object. For example, type("Hello World") would return str because "Hello World" is a string.