Solve fibonacci

computes fibonacci sequence up to n, using a function, in python (version 3.0 +)