About 3,980,000 results
Open links in new tab
  1. How do I calculate square root in Python? - Stack Overflow

    Jan 20, 2022 · Newton's method takes a number a and returns its square root as follows: y = (x + a/x) / 2 where x is an arbitrary estimation and y is a better estimation of a. def sqr_root(a): if a …

  2. Find Square Root Of Given Number - Python - GeeksforGeeks

    Feb 24, 2025 · Given an integer X, find its square root. If X is not a perfect square, then return floor (√x). For example, if X = 11, the output should be 3, as it is the largest integer less than …

  3. Python math.sqrt() Method - W3Schools

    The math.sqrt() method returns the square root of a number. Note: The number must be greater than or equal to 0.

  4. 4 Methods to Calculate Square Root in Python - AskPython

    Jul 6, 2021 · Let’s discuss some well-known methods in Python to calculate the square root of numbers. 1. Calculate square root using the exponent operator. In this method, we will define …

  5. The Python Square Root Function

    The Python square root function, sqrt(), is part of the math module and is used to calculate the square root of a given number. To use it, you import the math module and call math.sqrt() with …

  6. Python math.sqrt() function | Find Square Root in Python

    Feb 14, 2025 · math.sqrt () returns the square root of a number. It is an inbuilt function in the Python programming language, provided by the math module. In this article, we will learn …

  7. Square Root in Python - Python Guides

    Oct 2, 2024 · To calculate the square root in Python, you can use the math.sqrt () function from the built-in math module. First, import the module using import math, then call math.sqrt (x) …

  8. Python Find Square Root of Number - PYnative

    Mar 27, 2025 · The square root of a number x is a value y such that when y is multiplied by itself, it equals x.. Mathematical Representation: √x = y where y × y = x For Example: √25 = 5 …

  9. Python Square Root: How to Calculate a Square Root in Python

    Sep 4, 2021 · In this tutorial, you’ll learn how to calculate use Python to calculate the square root of a number, using the .sqrt() function. You’ll learn how to do this with, and without, the popular …

  10. Python Program For Square Root Of A Number (With Code)

    In this article, we will explore how to write a Python program to calculate the square root of a number. The square root of a number is a mathematical operation that gives the value which, …

  11. Some results have been removed
Refresh