Help with while loop problem

for x in range(1,11):
y = math.sqrt(x)
print (‘The suare root of’, x, 'is: ', (round (y,2)))

Redo the previous problem, except instead of creating a for loop, create a while loop that uses math.sqrt( ) and calculates and prints the square root of each of the the integers 1 through 10. Round to two decimal places. Your output should look the same as the previous problem.

Here is the Python 3 documentation on the while statement.

That should make it obvious what you need to change to accomplish what’s being asked of you. :slight_smile: