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

List FIVE challenges James Cook faced on his drive north.
Deon throws a ball into the air. The height, h, of the ball, in meters, at the time t seconds is modeled by the function h(t) = -5t + t + 4. 1. When will the b
has anyone on here just recently got into a figth with their boy friend? if so, let me know what you did to deal with the heart break.
what is the LCM of 4, 5
The slope of the line whose equation is 2x + 5y + 1 = 0 is0-2750-1/5O5/2
find a, b and c. don’t be slow. show the equation and answer for all pls (:
Need help with chemistry homework. About separation of mixturesWhen you evaporate saltwater, and there's salt left, how does they separate, even though they wer
An observer (O) is located 900 feet from a building (B). The observer notices a helicopter (H) flying at a 49° angle of elevation from his line of sight. How hi
Which of the following is not a characteristic of a freshwater wetland? A. The ecosystem absorbs heavy rainfall to prevent flooding.B. Water flows in only one d
Modelar con matemáticas Aleyshka está ahorrando dinero en su cerdito. Tiene 15 monedas de 25 centavos, 19 monedas de diez centavos y el resto son monedas de ci