Skip to content

Commit

Permalink
day 21 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Dec 10, 2019
1 parent 2db4b9a commit 5901fa8
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 139 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ res.py
hello.py
backup.md
.DS_Store
__pycache__
__pycache__
playground/
playground
Empty file added mypackage/__init__.py
Empty file.
28 changes: 28 additions & 0 deletions mypackage/arithmetics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
def add_numbers(*args):
total = 0
for num in args:
total += num
return total


def subtract(a, b):
return (a - b)


def multiple(a, b):
return a * b


def division(a, b):
return a / b


def remainder(a, b):
return a % b


def power(a, b):
return a ** b



2 changes: 2 additions & 0 deletions mypackage/greet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def greet_person(firstname, lastname):
return f'{firstname} {lastname}, welcome to 30DaysOfPython Challenge!'
Loading

0 comments on commit 5901fa8

Please sign in to comment.