きったんの頭

#! /usr/bin/env python3
"""
pe1.py
https://mind.kittttttan.info/py/pe1
"""

def pe1(limit=1000):
    """
    Add all the natural numbers below one thousand
    that are multiples of 3 or 5.
    """
    print(sum([x for x in range(1, limit) if not x % 3 or not x % 5]))

if __name__ == "__main__":
    pe1()