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

Fazio chooses a jersey at random and then replaces it. He then selects a second jersey at random. What is the probability that fazio selects a striped jersey bo
What’s the answer 1/6+1/2
ANSWER FAST: Which expressions are equivalent to [(x+4/)3]/[6/x]when x does not equal 0? Select three options.[(x+4)/3](x/6)
In the book Night How were the Jews saved from being completely liquidated at Buchenwald?
Find the discriminant. x² + 2x + 1 = 0 Submit
Someone answer this question I know your reading this.
1) A rectangular prism has a length of 2 inches, a height of 5inches, and a width of 3 inches. What is the volume of thisrectangular prism?​
Who proposed the compromise
Why were taxes an ongoing source of conflict for the American colonists
A company's fixed operating costs are $420,000, its variable costs are $3.20 per unit, and the product's sales price is $4.65. What is the company's break-even