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

Describe two actions taken by Emmeline Pankhurst and the WPSU to fight for women's suffrage. Please Help.
8;18;30;44;.... calculate the nth term of the sequence
Tyler is over training his muscles if he is _____. gaining muscle strength too quickly using weights that are too heavy taking breaks that are too long between
Mum cut a piece of ribbon measuring 1.2 metres into 3 equal parts.What is the length of each piece
Which is the best definition of a phylogenetic tree
Which of the following best describes the relationship between factory owners in the North and people in the South during the late 1800s? a. Northern factory o
There are 6 girls and 7 boys in a class. A team of 10 players is to be selected from the class. How many different combinations of players are possible?]
an example of people adapting to their environment is
What should be considered when trying to discover the theme of a piece of literature?
During which movement in Beethoven's Fifth Symphony do double variations appear? a. Second b. Third c. First d. Fourth