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