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

A restaurant uses 3 pounds of pasta for a party of 14 people. If they are cooking pasta for a party of 56 people, what should they do?
The mass of Hinto's math book is 4,458 grams. What is the mass of 4 math books in kilograms?
The largest part of the brain is the a. cerebrum. c. thalamus. b. cerebellum. d. hypothalamus.
how does congress do its work
Sale amount 399.79 sale tax 5%
Bob is training for a race. Bob ran 14.6 miles away from his home. Then, Bob ran 9.8 miles towards his home. Finally, bob ran 5.3 miles away folrom his home. Ho
Mentally convert the base ten numeral 77 to base two
The placebo effect refers to
an electronics store had 182 video games. if they put them on shelves with 24 on each shelf, about how many shelves would they need?
A recipe asks for cup of milk. How many cups of milk are needed for recipes? A. cup B. cup C. cups D. cups