day 21 fixes

This commit is contained in:
Asabeneh 2019-12-10 21:42:10 +02:00
parent 2db4b9a324
commit 5901fa8f15
5 changed files with 408 additions and 142 deletions

4
.gitignore vendored
View File

@ -7,4 +7,6 @@ res.py
hello.py
backup.md
.DS_Store
__pycache__
__pycache__
playground/
playground

0
mypackage/__init__.py Normal file
View File

28
mypackage/arithmetics.py Normal file
View File

@ -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
mypackage/greet.py Normal file
View File

@ -0,0 +1,2 @@
def greet_person(firstname, lastname):
return f'{firstname} {lastname}, welcome to 30DaysOfPython Challenge!'

File diff suppressed because it is too large Load Diff