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