In Python, is there a way to test if a number is divisible by multiple numbers without writing out the modulo operation for each factor?
More specifically, is there
Useall()and a Generator Expression:
all()
if all(i % n == 0 for n in range(11, 101)): print(i)