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

Keri walks her dog every morning the length of the walk is 0.55 kilometer on each weekday.on each weekend day the walk is 1.4 times as long as a walk on a weekd
You are a quality inspector at an automobile production plant. a machine produces 50 car seats per day. on monday, you had to reject 5 car seats because of defe
Present continuos/ negative you can have our tennisrackets. we _____ (use) them at the moment
Which event marks the climax in "the glass of milk"? the boy finds work loading cargo. the boy eats and drinks the milk and cookies that he knows he cannot pay
In which region are most of the cities of Brazil? southern region Amazon lowlands central highlands coastal plain
During pontiacs war did France cause Indian nations to attach settlers
Make n the subject of the formula M=3n
Is the quotient of two mixed numbers positive ?
In a machine, a large gear completes a revolution every minute while a small gear completes a revolution every 24 seconds. if th gears are currently aligned, ho
What is the best definition of “scrub suit”?