Code
Diff
  • def euler(num):
        return sum([x for x in range(num) if not x % 3 or not x % 5])
  • 11 def euler(num):
    2 sum=0
    3 for x in range(num):
    4 if x%3==0 or x%5==0:
    5 sum += x
    6 return sum
    2+ return sum([x for x in range(num) if not x % 3 or not x % 5])