I recently found a website called Eulerproject.net. I found this while I was searching for “How to become an expert in Python programming language”. It stackoverflow there was a similar question posted “Python progression path – From apprentice to guru” . In the discussion there were bunch of ideas that interested me. One of them is to solve the Eulerproject.net puzzles.

I had a look at the first problem and have tried to solve it the python way. I will continue posting the my solution and also the solution provided as part of overview.

#!/usr/bin/python """ https://projecteuler.net/problem=1 """ """ If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. """ sum = 0 for i in range(1000): if i%3 == 0 or i%5 == 0: sum += i print "The sum is :", sum