unknown152714 unknown152714
  • 03-11-2020
  • Computers and Technology
contestada

Input a number and find the square root only if the number entered is greater than or equal to zero.

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-11-2020

number = float(input("Enter a number: "))

if number >= 0:

   print(number**0.5)

I hope this helps!

Answer Link

Otras preguntas

Which chart correctly describes the properties of magnets and electromagnets?
Solve ax2 + bx +c = 0 when a=5, b = -23 and c = 12 to find the zeros (x intercepts)
Which word or phrase below best described how the Free Press organization believes the power of the media should be distributed. a. corporate domination c. el
What was the effect when congress printed more money
what does -1-6x-6>-11-7x equal
What Best protects a firm from being forced to sell its product at an unfairly low price?
Alice has 1/5 as many cars as Sylvester has. Sylvester has 35 miniature cars. How many miniature cars does Alice have?
Mendel's principle of segregation implies that the two members of an allelic pair of genes _____.
-2a(a+b-5)+3(-5a+2b)+b(6a+b-8)
Rob sometimes confuses real and imaginary events. what does he suffer from?