Skip to content

Commit 7834b75

Browse files
Merging Dev to main
2 parents edf46f0 + 8078fca commit 7834b75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

calculatorPlus.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def divide(self, a, b):
1515
return a / b
1616

1717
# TODO: Implement the following function to calculate the square root of a number.
18-
# def square_root(self, x):
19-
# return math.sqrt(x)
18+
def square_root(self, x):
19+
return math.sqrt(x)
2020

2121
if __name__ == "__main__":
2222
calculator = Calculator()
@@ -30,5 +30,6 @@ def divide(self, a, b):
3030
print(f"{num1} / {num2} = {calculator.divide(num1, num2)}")
3131

3232
# TODO: Uncomment and test the square root feature.
33-
# num3 = 25
34-
# print(f"The square root of {num3} = {calculator.square_root(num3)}")
33+
num3 = 25
34+
print(f"The square root of {num3} = {calculator.square_root(num3)}")
35+

0 commit comments

Comments
 (0)