Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions exercises/1901100357/1001S02E01_helloworld.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HOMEWORK 5.5
1 change: 1 addition & 0 deletions exercises/1901100357/1001S02E02_hello_python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print ("Hello World!")
28 changes: 28 additions & 0 deletions exercises/1901100357/1001S02E03_calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
def add(x, y):
print("adding {} and {}".format(x, y))
return x + y


def subtract(x, y):
print("subtracting {} and {}".format(x, y))
return x - y


def multipy(x, y):
print("multipying {} and {}".format(x, y))
return x * y


def divide(x, y):
print("dividing {} and {}".format(x, y))
return x / y

a = add(1, 2)
s = subtract(2, 3)
m = multipy(3, 4)
d = divide(18, 3)

print(a)
print(s)
print(m)
print(d)
Empty file added exercises/1901100357/README.md
Empty file.