Python program to find Square root of a Number

number = int(input("Enter a number to find the square root : "))
if number < 0 :
  print("Please enter a valid number.")
else :
  sq_root = number ** 0.5
  print("Square root of {} is {} ".format(number,sq_root))

OUTPUT:

Enter a number to find the square root : 25
Square root of 25 is 5.0 

Leave a Comment