How to find a square root of a number in python
When a number is multiplied with same number, it is called square. Square root means the number is factorised with two same numbers. Eg: The square root of 25 is 5. (5x5 = 25). The square root is represented by √. Python implementation: Python uses the following modules and methods to find the square root of a number. ‘exponentiation’ method ‘math’ module ‘cmath’ module ‘numpy’ module. Let us briefly discuss each method. 1. ‘exponentiation’ method: This method uses the concept ‘exponent’. >>> no = 81 >>> sqrt = no ** 0.5 >>> print("The Square root of the number is:", sqrt) Output: The Square root of the number is: 9.0 Note : It returns float value. 2. ‘math’ module : ...