<filename>JacobWork/sequences.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def fibonacci(n):
    """ returns the sequence of n fibonacci numbers
    """
    firstfib = 1
    secondfib = 1
    temp = 0
    seq = []
    for i in range (n):
        seq.append(firstfib)
        temp = secondfib + firstfib
        firstfib = secondfib
        secondfib = temp
    return seq
    

<filename>JacobWork/sequences.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def fibonacci(n):
    """ returns the sequence of n fibonacci numbers
    """
    firstfib = 1
    secondfib = 1
    temp = 0
    seq = []
    for i in range (n):
        seq.append(firstfib)
        temp = secondfib + firstfib
        firstfib = secondfib
        secondfib = temp
    return seq
    

#!/usr/bin/env python3 # -*- coding: utf-8 -*- returns the sequence of n fibonacci numbers