close
close

Python and Data Structures Part 2: type() keyword

Today’s quick lesson is about the type() function in Python

the type() is a built-in function in Python that returns the type of an object.

Here are some examples of how the type() function works:

`type(5)


type("Anthony")


type({age:10})

Go to full screen mode

Exit full screen mode

The purpose is to return the type of an object

Stay tuned, part 3 coming soon!