From df5aed8d7787258d056dd1f5a221f15e09ab33de Mon Sep 17 00:00:00 2001 From: kidwaih2 Date: Fri, 24 Jan 2025 18:52:32 -0600 Subject: [PATCH] Create Fibonacci.py --- Fibonacci.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Fibonacci.py diff --git a/Fibonacci.py b/Fibonacci.py new file mode 100644 index 0000000..062d52d --- /dev/null +++ b/Fibonacci.py @@ -0,0 +1,10 @@ +first = 0 +second = 1 +set = int(input('Enter how many times you want to have it repeat: ')) +print(first) +print(second) +for i in range(2, set): + third = first + second + print(third) + first = second + second = third