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

Which river system ran parallel to royal road
I have no idea what the answer is too this. It is geometry if you didn't know already. I'm really struggling here. If anybody could help me out with the answer
Tori examined the pattern of exponents in the table.
what's the better deal, 1 apple for $.50, or 3 for $1​
Evaluate ³√-8 please help.
Given that cos(30°) = cos(45°)cos(15°) + sin(45°)sin(15°), it follows that cos(30°) =
a store increased its prices on computers by 12%. If p represents the regular price of computers, what expression could be used to find the new prices of comput
After a bill receives its first reading the next step is to
What are the different measurements for angles and how do we convert between them? Explain with examples of your own.
If each type of paper is 1/4 of a whole sheet of paper how many steps can we make from threefull sheets of paper