Your example could be written as:
if type(10) is int: # "==" instead of "is" would also work.
print 'yes'
But note that it might not exactly do what you want, for example, if you wrote 10L or a number greater than sys.maxint instead of just 10, this would not print yes, because long (which would be the type of such a number) is not int.
Another way is, as Martijn already suggested, to use the isinstance() builtin function as follows:
if isinstance(type(10), int):
print 'yes'
insinstance(instance, Type) returns True not only if type(instance) is Type but also if instance's type is derived from Type. So, since bool is a subclass of int this would also work for True and False.
But generally it is better not to check for specific types, but for for the features, you need. That is, if your code can't handle the type, it will automatically throw an exception when trying to perform an unsupported operation on the type.
If you, however, need to handle e.g. integers and floating-point numbers differently, you might want to check for isinstance(var, numbers.Integral) (needs import numbers) which evalutes to True if var is of type int, long, bool or any user-defined type which is derived from this class. See the Python documenation on the standard type hierarchy and [numbers module]