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

What was the result of the Supreme Court decision in Menominee Tribe v. United States? The U.S. government could tax American Indian land. The U.S. government
f(x) = 5x – 2 slope of f =
A bag contains 8 white marbles, 4 green marbles and 3 blue marbles. 2 marbles are selected at random without replacement, find the probability both green
Translate the phrase into an algebraic expression. The product of 6 and c
Which of the following is the greatest common factor of 48 and 32?
can you HELP PLZ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! i give 50
(c) Ada is x years old and Bill is y years old. Last year, Bill was 6 times as old as Ada. (1) Form an equation in x and y and show that it simplifies to y = 6x
An example of a food from the protein group is
1/243 as an expression using a negative exponent other than -1​
What is benford's law.