Sunday, November 2, 2014

Fibonacci in python

Fibonacci Python


import os
import sys

def fib(a,b,count):
    c=a+b
    a=c
    b=c+b
    print(a)
    print(b)
    if count<100: a="" b="" count="" else:="" fib="" nde="" pre="" print="">


Author:Marcin
Language:Python 3.4
Infos: 
fibonacci Numbers with recursiv programming in python. Shows the next 100 numbers of fib function. But you can show more. Just manipulate the count in the fib function.
Video: https://www.youtube.com/watch?v=MrhpbPXxZbY

No comments:

Post a Comment