You are viewing a single comment's thread. Return to all comments →
def squares(a, b): count = 0 root_val = int(math.sqrt(a)) num = root_val if root_val**2 >= a else root_val+1 while num**2 <= b: count += 1 num +=1 return count
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →