← Projects

Delete fibonacci.py

ddcfbdaad0196e56fb71eca4a4f8634e14d7766e · ovidiucs · Jul 14, 2013 23:51

−15 · 1 file changed

  • Numbers/fibonacci.py +0 −15
diff --git a/Numbers/fibonacci.py b/Numbers/fibonacci.py
deleted file mode 100644
index 4e20a55..0000000
--- a/Numbers/fibonacci.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# -*- coding: cp1252 -*-
-# Fibonacci Sequence  Enter a number and have the
-# program generate the Fibonacci sequence to that number
-# or to the Nth number
-
-n = int(raw_input('How many numbers do you need? '))
-series = [1]
-
-while len(series) < n:
-    if len(series) == 1:
-        series.append(1)
-    else:
-        series.append(series[-1] + series[-2])
-
-print series