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

What is the median of the data set represented by the dot plot? Enter the answer in the box.
Consider a triangle with dimensions 2, 2, 3.Which choice gives dimensions of a similar triangle with a scale factor of 8?
URL structure is: Protocol + Domain Name + .
Sentences expressing what could occur if certain things take place are written in which verb mood? Indicative Imperative Conditional Subjunctive
choose the statement that correctly describes the diagram.A. Side B has a higher concentration of particles than side A. B. Side A and side B have equal numbers
Which statements about ecosystems are true
can someone help me plz
A nurse is assessing a newborn at the healthcare facility when the mother of the child asks the nurse why the body temperature of her baby is unstable. which re
A scientist heats a piece of iron until it is glowing white-hot. He places the metal inside a metal box. He removes all of the air from the inside of the box. A
an = an-1 + What number belongs in the blank space in the recursive formula?