5 Ways of Fibonacci in Python – Best way!

For appreciating this post, I request you to go through¬†5 Ways of Fibonacci in¬†Python post of mine, where I have explained 5 different ways by which you could write code for finding nth Fibonacci number. At the end of the post, I had promised you that I would come up with performance measurements for each … Continue reading 5 Ways of Fibonacci in Python – Best way!

Euler project in Python

Solution to Euler project in Python Problem 1-10 [sourcecode language="python"] ## For class Helper see below helperObj = Helper() def problem1(self): ''' Add all the natural numbers below one thousand that are multiples of 3 or 5. ''' numbers = range(0,1000) return reduce(lambda x,y: x+y, filter(lambda(x):x%3==0 or x%5==0, numbers)) def problem2(self): ''' By considering the … Continue reading Euler project in Python