Jika tidak, beberapa nilai ganda

for var in [1, 2, 2.0]:        
	if not isinstance(var, int) :
		raise TypeError('Please make sure all inputs are integers')
Trained Tuna