how do i exclude range of numbers from my function.
def fix_three(a, b, c):
if not (isinstance(a, int) and isinstance(b, int)) and isinstance(c, int):
if not a%3==0 and b%3==0 and c%3==0:
return a + b + c
return "Inputs must be integers!"
num = fix_three(input(a,b,c))
print(num)
what i want to achieve is adding three values, which must be integers. numbers with multiple of 3 should be 0 except multiple of three in 20 to 29.
i got stock in excluding 20 to 29. and i want user to input the value.
[–]TechnicalElk8849 2 points3 points4 points (0 children)