Python 3 code needed:
Ask the user for a number between 2 and 1000. Using a loop, calculate the integer square root by calculating the square of every number from 1 until the square of the number is more than the number entered. The previous number is the integer square root. You must write a function calledintSqrRoot which calculates the answer and returns it to main. See the template given. Sample run:
Please enter a number between 2 and 1000: 16
[1][1][2][3]
The integer square root of 16 is 4.