Answers for "python python square root"

17

python square root

import math
a = input("what do you wnat to square root")
print(math.sqrt(a))
Posted by: Guest on July-09-2020
-1

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
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

Python Answers by Framework

Browse Popular Code Answers by Language