The above answer:
if all(i % n == 0 for n in range(11, 101)): print(i)
which should be mentioned as a refinement, works only with the built-in function. I use Spyder, which by default uses all of numpy.core.fromnumeric, and the above answer will not work in this case. Then use the following:
import __builtin__ if __builtin__.all(i % n == 0 for n in range(11, 101)): print(i)
source share