print isinstance(3,int) print isinstance(3.1,float) print isinstance(3,type(3)) print isinstance(3.1,type(3.1)) print isinstance("foo",str) print isinstance("foo",type("foo")) print isinstance([],list) print isinstance([],type([1,2,3])) print isinstance(None, type(None)) print isinstance(True, bool) print isinstance(True, type(True))