Python type() built-in function

From the Python 3 documentation

With one argument, return the type of an object. The return value is a type object and generally the same object as returned by object.__class__.

Introduction

The type() function in Python is a built-in function that returns the type of an object. It’s a fundamental tool for understanding the data types you are working with in Python.

Examples

type('span')
type(99)
type(1.1)
type([1, 2])
type((1, 2))
type({1, 2})
type({'a': 1, 'b': 2})
<class 'str'>
<class 'int'>
<class 'float'>
<class 'list'>
<class 'tuple'>
<class 'set'>
<class 'dict'>