예제 #1
0
 def test_squareRoot(self):
     self.assertEqual(5, squareroot(25))
예제 #2
0
 def squareroot(self, a):
     self.result = squareroot(a)
     return self.result
예제 #3
0
def sd(num):
    try:
        variance_float = variance(num)
        return round(squareroot(variance_float), 2)
    except ZeroDivisionError:
        print("Watch out: You're dividing by Zero!")