Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions exercises/fibonacci/solution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBMIT = False
SUBMIT = True


def fibonacci(n: int) -> int:
Expand All @@ -14,4 +14,11 @@ def fibonacci(n: int) -> int:
>>> fibonacci(10)
55
"""
pass
if n == 0:
return 0
if n == 1:
return 1
a, b = 0, 1
for _ in range(2, n + 1):
a, b = b, a + b
return b
4 changes: 2 additions & 2 deletions exercises/hello_world/solution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBMIT = False
SUBMIT = True


def hello_world() -> str:
Expand All @@ -8,7 +8,7 @@ def hello_world() -> str:
>>> hello_world()
'Hello, World!'
"""
pass
return "Hello, World!"


# Workflow test internal
Expand Down
Loading