### LANGUAGE: PYTHON

### CHALLENGE:

Assume there is a variable, h already associated with a positive integer value.

Write the code necessary to count the number of perfect squares whose value is less than h, starting with 1.

(A perfect square is an integer like 9 , 16 , 25 , 36 that is equal to the square of another integer (in this case 3*3 , 4*4 , 5*5 , 6*6 respectively).)

### SOLUTION:

q = 0 sqrt = int(h ** 0.5) if sqrt != h: >>sqrt += 1 for i in range(1, sqrt): >>q += 1