Skip to content
Open
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
6 changes: 4 additions & 2 deletions challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ def make_division_by(n):
"""This closure returns a function that returns the division
of an x number by n
"""
# You have to code here!
pass
def division(x):
assert n != 0, 'Division by 0 is not valid'
return x / n
return division


def run():
Expand Down