From 13ebdc35fda3e4b5d7c36f382f32f702af2ceed5 Mon Sep 17 00:00:00 2001 From: Christian Bender Date: Sun, 15 Apr 2018 23:29:21 +0200 Subject: [PATCH] I fixed the sol3.py of problem 1 --- Project Euler/Problem 01/sol3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project Euler/Problem 01/sol3.py b/Project Euler/Problem 01/sol3.py index 78b4d0e93..f4f3aefcc 100644 --- a/Project Euler/Problem 01/sol3.py +++ b/Project Euler/Problem 01/sol3.py @@ -1,3 +1,5 @@ +from __future__ import print_function + ''' Problem Statement: If we list all the natural numbers below 10 that are multiples of 3 or 5, @@ -7,7 +9,7 @@ Find the sum of all the multiples of 3 or 5 below N. ''' This solution is based on the pattern that the successive numbers in the series follow: 0+3,+2,+1,+3,+1,+2,+3. ''' -from __future__ import print_function + try: raw_input # Python 2 except NameError: