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

how can you tell which slope is steeper when they are in the form of fractions
What is 0.2 as a whole number?
Two trains leave the station at the same time. The first train is traveling north and the second train is traveling south 20 mph slower. After 2 hours, they a
Water molecules can pass into a cell, while larger molecules cannot. Which feature of a cell allows this to be true? A; semipermeable membrane B; photosynthetic
A woman treated her home with a pesticide that kills spiders. The first application killed 78% of the spiders. Two months later she applied the pesticide again,
Can someone SMART redo these questions I mean I made a seven and I did all I could I need to know what went wrong
Which of the following is not part of the cell theory? A. All living things are made of one or more cells B. All cells contain the same structures. C. Cells are
Which of the following is true about scientific theories? I. New research is often done to learn more about existing scientific theories. II. Scientific theorie
how did capitalism change the balance of power in European countries?
is the sun considered a star?