OrrinPants's user avatar
OrrinPants's user avatar
OrrinPants's user avatar
OrrinPants
  • Member for 2 years, 9 months
  • Last seen more than a month ago
  • orrinpantss-website.orrinpants.repl.co/index.html
  • Fort Wayne, IN, USA
About

I've mastered Python! Here's a Python script that does the Fibonacci sequence:

from itertools import count
num = int(input())


def fibonacci(n):
    if n==0:
        return 0
    if n==1:
        return 1
    if n==2:
        return 1
    return fibonacci(n-1)+fibonacci(n-2)
         
for i in range(num):
    print(fibonacci(i))

My AI text completer this whole time: Edit, User

Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
2
bronze badges
Posts

This user hasn’t posted yet.