Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Krause
pytoy
Commits
6c5066aa
Commit
6c5066aa
authored
Jan 22, 2021
by
Maike Kleemeyer
Browse files
Change typos, add description
parent
e52b60cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
sequences.py
View file @
6c5066aa
...
...
@@ -2,7 +2,7 @@ import math
import
helpers
def
fibonacci
(
n
):
"""return f
r
ist n elements of the fibonacci sequence with seeds 0 and 1"""
"""return fi
r
st n elements of the fibonacci sequence with seeds 0 and 1"""
res
=
[
0
,
1
]
for
i
in
range
(
n
-
3
):
res
.
append
(
res
[
-
1
]
+
res
[
-
2
])
...
...
@@ -10,6 +10,7 @@ def fibonacci(n):
def
naturalsquares
(
n
):
"""return first n squares"""
return
[
x
**
2
for
x
in
range
(
n
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment