forked from Asabeneh/30-Days-Of-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!' |