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

Compute the odds in favor of rolling a sum of 10 in a single roll of two fair dice
A graph depicts force versus position. What represents the work done by the force over the given displacement? A. The work done is equal to the product of the m
An ice cube is dropped into boiling water. How will heat flow between the water and the ice cube?
what does como eres tu mean in spanish?
which of the following expressions does not equal: the sixth root of 81x^4y^8 a. (3xy^2)^2/3 b. (3x)^2/3y^4/3 c. (3x^2y^4)^1/3 d. cube root of 9x^2y^4
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
Compute the odds in favor of rolling a sum of 10 in a single roll of two fair dice
let g(x)=x-3 and h(x)=x^2+6 find (h o g) (1)
which type of gas is filled in lays pack and why?