num=0
for a in range(1000):
if (a%3)==0 or (a%5)==0:
  num=num+a
  print num

1부터 999까지 3배수 5배수 다더하는건데

안댐 저기서 num줄 지우고

Print a

하면 쭉나오기는하는데

다더하는법좀