hamptonhannah1219 hamptonhannah1219
  • 01-01-2021
  • Computers and Technology
contestada

What is the output of this program?
numA = 2
numB = 3
if numA == 2 or numB == 2:
print("yes")
elif numA == 2 and numB == 3:
print("no")
Output:

Respuesta :

yesyesufcurs yesyesufcurs
  • 02-01-2021

Answer:

Output: yes

Explanation:

First if statement is satisfied, since numA==2, so yes is printed.

The elif statement is skipped altogether, since elif statements are only evaluated, when the statement above if false, which it is not.

Answer Link

Otras preguntas

Two fifths of a number is 32. What is the number?
please help i need to match these and i dont get it​
are you afarid of to write you dont think your good writer?
Write as an expression and simplify: the difference of the squares of 2m and 7n.
The means by which energy is made available to a cell is called
The government in Great Britain exercises complete control over the whole country. Any power that is held by lesser governments is derived from the Federal Gove
The fresco pictured below is located in the Church of Santa Felicita adjacent to _____________. The Mannerist painting is meant to represents the Annunciation,
Jenna is a swimmer and trains every day. The schedule shown outlines the number of hours she trains each day. If she misses the Wednesday practice, what is the
What is the produc in scientific notation?
Your class is selling boxes of flowers as a fundraiser. The profit p depends on the amount x that your class charges for each box of seeds. The equation p=-0.5^