What is the best (idiomatic) way to check the type of a Python variable? [duplicate] What is the best (idiomatic) way to check the type of a Python variable? [duplicate] python python