Krijo një program që shfaq sekuencën e numrave Fibonacci.
def fibonacci(n): if n<0: print("Input i gabuar") # Numri i parë i # Fibonacci Series elif n==1: kthim 0 # Numri i dytë i # Fibonacci Series elif n==2: kthim 1 else: kthim fibonacci(n-1) +fibonacci(n-2) # Driver Program print(fibonacci(9))