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 is the value of the expression All of 2.6 multiplied by 10 to the power 9 over all of 1.3 multiplied by 10 to the power 2? (5 points) 1.3 × 107 2.0 × 107 1
Solve: 2(x+3)=x-4 Solve: 4(5x-2)=2(9x+3)
1. How does Santa Anna characterize the mission of the Mexican Army? 2. How does this compare to the language of the de la Pena attributes to the American comma
Help please!! don’t know what to do?!
What is the slope-intercept from 6x+y=8
Area of rectangle is 128, the ratio of length to width is 2:1 what is the width
square root of 12 x square root of 8
Number 25 need helpHelp help help ​
3 people can paint a fence in 8 hours how long will it take 5 people to build a fence
5 and 1/4 divided by negative 6 simplify