Understanding Test Driven Development with Python

Author: Chetan Giridhar and Vishal Kanaujia Published at: agilerecord, February 2012 Edition Objective Test Driven Development is still a nascent concept for many. Developers often have erroneous assumptions, preconceived notions about the concept, and may fail to understand its potential. This article explains TDD with an intuitive Python example. Let’s start with what TDD is? … Continue reading Understanding Test Driven Development with Python

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