Sha256: 17b033acf790fd91a4166c9fafba10419addf091cb573932d4ebb7ee120a5fbb

Contents?: true

Size: 181 Bytes

Versions: 269

Compression:

Stored size: 181 Bytes

Contents

def sum_of_multiples(limit, multiples):
    return sum(value for value in range(limit)
               if any(value % multiple == 0
                      for multiple in multiples))

Version data entries

269 entries across 269 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.179 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.178 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.177 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.176 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.175 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.174 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.173 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.172 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.171 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.170 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.169 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.167 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.166 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.165 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.164 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.163 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.162 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.161 tracks/python/exercises/sum-of-multiples/example.py
trackler-2.2.1.160 tracks/python/exercises/sum-of-multiples/example.py