condition python si dataype

if isinstance(x, int):
Faithful Fish