From 2965bf37bb8fc6c6d672d6775612531e4a3074ba Mon Sep 17 00:00:00 2001 From: Srikant Date: Tue, 24 Jan 2012 16:19:59 +0530 Subject: Added supporting files. Added script and slides for 'using_python_framework_for_tdd', math_utils diretory contains files used in the tutorials, two_column.py is added to convert script.rst into two column format.Use it as: $ two_column.py tdd1_script.rst image dir contains png files for iitb logo's etc. --- TDD/math_utils/fibonacci.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 TDD/math_utils/fibonacci.py (limited to 'TDD/math_utils/fibonacci.py') diff --git a/TDD/math_utils/fibonacci.py b/TDD/math_utils/fibonacci.py new file mode 100644 index 0000000..0f454d6 --- /dev/null +++ b/TDD/math_utils/fibonacci.py @@ -0,0 +1,7 @@ +def fibonacci(n): + if n == 0: + return 0 + elif n == 1: + return 1 + else: + return fibonacci(n-1) + fibonacci(n-2) -- cgit