Logo
Explore Help
Register Sign In
exercism/python
1
0
Fork 0
You've already forked python
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
c5d9d9c0b3c808c1cb6f1968e7f9a096ec64dfb4
python/exercises/practice/sum-of-multiples/example.py

6 lines
219 B
Python
Raw Normal View History

sum-of-multiples: Update test cases and example (#446) Updates the test cases according to the canonical test data and stores the test data version. Fixes the example to fit the new tests.
2017-03-23 13:42:35 +01:00
def sum_of_multiples(limit, multiples):
sum_of_multiples: Implemented issue #141
2014-11-08 14:06:05 -08:00
return sum(value for value in range(limit)
if any(value % multiple == 0
sum-of-multiples: update tests to v1.5.0 (#1603) * sum-of-multiples: update tests to v1.5.0 Fixes exercism#1580 * Updated 3 test cases to conform to canonical data (reordered list to fit the ascending order convention) * Updated example to check for ZeroDivisionError * sum-of-multiples: pep8 formatting connotation Small edits to conform to Pep8 standards * sum-of-multiples: pep8 formatting connotation Even smaller updates to conform to pep8 * sum-of_multiples: update import list Change import to link to correct file * sum-of-multiples: update tests to v1.5.0 * Updated test case names to reflect significance of each case. * Updated example.py for brevity * sum-of-multiples: update * Delete blank line
2018-12-03 05:09:02 -08:00
for multiple in multiples
if multiple > 0))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 138ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API