project-euler-100

[RADIOACTIVE] solutions to the first 100 challenges of project euler
git clone git://git.figbert.com/project-euler-100.git
Log | Files | Refs | README

commit da714d2fc363c4ee8acfecbf94687632b5f089ff
parent e14ff0a108befba563bda3f94d8a863ac8d1fc8a
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Mon, 20 Jan 2020 14:53:39 -0800

Simplify multOfThreeOrFive function in problem001.py

Diffstat:
Mproblem001.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/problem001.py b/problem001.py @@ -5,9 +5,7 @@ # dateCompleted = "20/01/2020" def multOfThreeOrFive(num): - if num % 3 is 0 or num % 5 is 0: - return True - return False + return num % 3 is 0 or num % 5 is 0 def sumOfMultiplesOfThreeOrFive(num): lstOfMults = []