Change code to list comprehension
<p>I have wrote following code for a simple problem in Python - </p>

<pre><code>def Peu1(numbers):
    "Sum of all the multiples of 3 or 5 below 1000."
    for num in range(numbers):
        if num%3 == 0 or num%5 == 0:
            test = sum(range(numbers),0)
        return test

print Peu1(1000)
</code></pre>

<p>I want to change it to List comprehension, I wrote following - </p>

<pre><code>test = [sum(range(numbers),0) for num in range(numbers) if num%3 == 0 or num%5 == 0]
print test
</code></pre>

<p>but my list comprehension is printing result in a loop, I mean I am getting result n times(mod 3 or 5). Please pinpoint the mistake and guide.</p>
