Skip to content

Commit 92126ca

Browse files
committed
square, cube functions added
1 parent b6c006b commit 92126ca

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

231 Bytes
Binary file not shown.

calculator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ def subtract(a,b):
1010
def divide(a,b):
1111
return a/b
1212

13+
def square(a):
14+
return a**2
15+
16+
def cube(a):
17+
return a**3
1318

1419
print("I'm going use the calculator functions to multiply 5 and 6")
1520
x = multiply(5,6)

0 commit comments

Comments
 (0)