In Java the numeric types all descend from Number so I would use (x instanceof Number). What is the python equivalent? 5 Answers 5 Tags: numberspythontypes