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

Why did female factory workers like Charlotte Woodward support the women’s rights movement?
Solve the equation x=x+3
how come some girls don't get period cramps?
In 1940 What was Germany’s initial strategy for conquering Britain?
Tasha believes that she can rewrite the diffrence 120 - 36 as a product of the GCF of the two numbers and another diffrence.Is she correct?
write the number in two other forms
wallpaper cost $2 per square yard how much would it cost to cover a rectangular wall that measures 15 feet by 21 feet
2h/3-1/4=1/3 solve and show your steps
how come some girls don't get period cramps?
Anyone know how to do this kind of algebra?  Compute the discriminants of the next two quadratic equations. Compare the result in (A) to that in (B). What do y