Is it possible for to have a python while loop purely on one line, I\'ve tried this:
while n<1000:if n%3==0 or n%5==0:rn+=n
But it produ
It is posible to do something similar:
rn = 100 for n in range(10): rn += n if (n%3==0 or n%5==0) else 0