r/pythontips • u/bhavaniravi • Oct 17 '21
Syntax Python Beginner Mistakes
As a Python trainer, I get to work with pynewbies across the spectrum. It doesn't matter whether they are from college or years into the industry when learning Python. The simplest language on the earth is not that intuitive. Things get even more challenging when they are well versed in a Typed-Object-Oriented-Language
I have compiled some of the common mistakes that beginners make.
52
Upvotes
3
u/EyeofEnder Oct 18 '21
I've always used type() for built-in types and isinstance() for classes.
Is it better to just generally use isinstance() for type checking?