Commit ce64f872 authored by Michael Krause's avatar Michael Krause 🎉
Browse files

Add naturalsquares sequence

parent 330742f9
import math
import helpers
def fibonacci(n):
"""return frist n elements of the fibonacci sequence with seeds 0 and 1"""
......@@ -6,3 +7,7 @@ def fibonacci(n):
for i in range(n-3):
res.append(res[-1] + res[-2])
return res
def naturalsquares(n):
return [x**2 for x in range(n)]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment