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

write an if statement to test if a number stored in y is between 6 and 10 inclusive.

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-11-2020

y = choose whatever number you want.

if 5 < y < 11:

   print("The value stored in y is between 6 and 10 inclusive")

else:

   print("The value stored in y is not between 6 and 10 inclusive.")

I hope this helps!

Answer Link

Otras preguntas

what It Trigonometry ?
what is the cell cycle??
What is the product of (x+1) and (2x^2+3x-1)?
A mouse population starts with 2,000 mice and grows at a rate of 5% per year. The number of mice after t years can be modeled by the equation, P(t)=2000(1.05)^t
do you know how to say my in Spanish?
An ant sits on the back of a mouse. The mouse carries the ant across the floor for a distance of 10 meters. Was there work done by the mouse? Explain.
A ski jumper competing for an Olympic gold medal wants to jump a horizontal distance of 135 meters. The takeoff point of the ski jump is at a height of 25 meter
Which of the following molecules has polar bonds but is a nonpolar molecule? a. H₂ b. H₂O c. NH₃ d. NaCl e. CO₂ Can anyone explain this one?
which inequality is equivalent to 7x-2y> 8. A) y> 7/2x+8 b) y>-2/7x+8/7 c) y <7/2x-4 d) y <-2/7x-4/7 (whats a Inequality? )
do you know how to say my in Spanish?