type()
function returns the type of your object. It’s a straightforward function and the examples below can help you have a better understanding of how it works.
We will also look at some other functions that can help you convert the type of a data. These are: int()
, float()
and str()
.