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

7+a y 7+b area y perimetro
15. A sheet of paper measured 30cm by 20cm. A strip 4cm wide is cut from it all around. Find the area of the remaining sheet. ​
According to the author, what is the relationship between service in the American military and the American dream
What word in Spanish use these letters goreals?
Find the value of the expression vw × 2 × u − 20 for u = 2, v = 3, and w = 2.
R N 45° 45° S T 10. What kind of angle is LSZT? A. acute B. obtuse C. right D. straight E. reflex​
what does x=, im very stuck on this
Blocks with masses of 3.0 kg , 4.0 kg , and 5.0 kg are lined up in a row on a frictionless table. All three are pushed forward by a 20 N force applied to the 3.
What’s the value of X when 10 X equals 12
Is a revocable trust valid even though the trustor is also the trustee and a beneficiary? a) Yes, always b) No, never c) Yes, with limitations d) Depends on st