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

The circumference of a circle is 6.28.What is the area of the circle?
Horace read 160 pages in 4 hours. How many pages can he read in 6 hours??
A 4.5 newton object is placed in a tank of water. If the water exerts a force of 4.0 newtons on the object, will the object sink or float?
Please tell me five slogans on conservation of natural vegetation.
Who were the Nazis ?
The length of a pool is 3 feet more than twice its width. If the perimeter of the pool is 72 feet, find the dimensions of the pool by writing and solving a syst
How consumers behaviour affect market equilibrium
The length of a pool is 3 feet more than twice its width. If the perimeter of the pool is 72 feet, find the dimensions of the pool by writing and solving a syst
Please tell me five slogans on conservation of natural vegetation.
The entire region of Northern Africa and southwest Asia has a climate generally described as?