How can I check if my python object is a number? [duplicate]

In Java the numeric types all descend from Number so I would use

(x instanceof Number).

What is the python equivalent?

5 Answers
5

Leave a Comment