mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
day 21 fixes
This commit is contained in:
parent
2db4b9a324
commit
5901fa8f15
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,4 +7,6 @@ res.py
|
||||
hello.py
|
||||
backup.md
|
||||
.DS_Store
|
||||
__pycache__
|
||||
__pycache__
|
||||
playground/
|
||||
playground
|
||||
0
mypackage/__init__.py
Normal file
0
mypackage/__init__.py
Normal file
28
mypackage/arithmetics.py
Normal file
28
mypackage/arithmetics.py
Normal 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
2
mypackage/greet.py
Normal file
@ -0,0 +1,2 @@
|
||||
def greet_person(firstname, lastname):
|
||||
return f'{firstname} {lastname}, welcome to 30DaysOfPython Challenge!'
|
||||
516
readme19-21.md
516
readme19-21.md
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user