Wenn nicht mehrere Werte sind
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')