Answers for "python square root program"

23

python get square root

import math

toSquare = 300
squared = math.sqrt(toSquare)
Posted by: Guest on February-11-2020
0

how to find the square root of a number in python

x = pow(4, 3) 
  # answer is 4x4x4
Posted by: Guest on October-01-2021
0

how to find a square root of a number using python

import math
whose_square = int(input("Of which number to find square root:- "))
print("The square root of ", whose_square,"is",math.sqrt(whose_square))
Posted by: Guest on October-04-2021
0

Write Python Program to find the square root of an input number. (create a user-define function of square root).

import math
number = int(input("enter a number:"))
sqrt = math.sqrt(number)
print("square root:" , sqrt)
Posted by: Guest on August-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language