About 3,470,000 results
Open links in new tab
  1. Python- Square Root of list - Stack Overflow

    Mar 23, 2022 · Taking the square root of each number in a list. For this problem in the sqrt_list function: Take the square root of each item in the list, Store each squared item in another list, …

  2. How do I calculate square root in Python? - Stack Overflow

    Jan 20, 2022 · The power operator (**) or the built-in pow() function can also be used to calculate a square root. Mathematically speaking, the square root of a equals a to the power of 1/2.

  3. 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 …

  4. Calculate the square root of each element in the given list - Python

    import math def calculate_square_root (numbers): """ Calculates the square root of each element in the given list. Args: numbers (list): The input list of numbers. Returns: list: A new list with the …

  5. Create a list of numbers with their square roots - Tutor Joes

    This Python code calculates the square root of each number in a list using the math.sqrt() function and stores the results in a new list. Here's how the code works: import math: This line imports …

  6. Numpy sqrt() - Find Square Root of Numbers - Python Examples

    To find the square root of a list of numbers, you can use numpy.sqrt() function. sqrt() functions accepts a numpy array (or list), computes the square root of items in the list and returns a …

  7. Find Square Root Of Given Number – Python | GeeksforGeeks

    Feb 24, 2025 · We can also find the floor of the square root using Python’s built-in exponentiation operator (**) and then integer conversion. Explanation: x**0.5 calculates the square root of x, …

  8. Calculating Square Roots in Python: A Comprehensive Guide

    Feb 18, 2025 · This blog post will explore different ways to calculate square roots in Python, covering the fundamental concepts, usage methods, common practices, and best practices. In …

  9. Python Square Root: A Comprehensive Guide - CodeRivers

    Apr 16, 2025 · Whether you are a beginner learning Python basics or an experienced developer looking for optimized solutions, understanding how to compute square roots is essential. This …

  10. How to Calculate the Square Root in Python: Multiple Approaches

    Dec 6, 2022 · There is an alternative way to use math.sqrt() to calculate the square root of a list, we can use it inside a Python for loop. import math numbers = [10, 20, 30.50, 40.30, 50.80] …

  11. Some results have been removed
Refresh