primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
def square_root(number):
|
||||
if number <= 0:
|
||||
raise ValueError("only accept positive integers")
|
||||
for root in range(1, number + 1):
|
||||
if (root * root) == number:
|
||||
return root
|
||||
return 0
|
||||
Reference in New Issue
Block a user