Answers for "find square root of input in python"

23

python get square root

import math

toSquare = 300
squared = math.sqrt(toSquare)
Posted by: Guest on February-11-2020
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