Create a smooth animation with Python and Pyglet.

Python Type Comparison: When to Use isinstance vs type.

There are a few ways to compare object types in Python and isinstance and type are two of them. Both built-in functions can be used to check if an object is of a certain type. But there is an important difference between the two and in this video, your learn when to use one or the other.

Written by Loek van den Ouweland on 2024-03-06.
Questions regarding this artice? You can send them to the address below.