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

write a short pragrph about sibling rivalry
To create a link in an HTML web page, use the ________ tag.
State whether your hypothesis was supported or rejected by your data and why. Based on your lab results and your prior knowledge, what do you think is going on
The price of an item yesterday was $40. Today, the price fell to $18. Find the percentage decrease.
Please help !! Trigonometric ratios
Which man-made features are typically parallel to the shore?A) Piers B) Breakwaters C) Groins D) Jetties
Four numbers have a mean of 9 and a median of 6. The four numbers are 2,5,a,b. Find the value of a and b
write a 2 sentence paragraph about how jealousy effects siblings
The table shows the values of a function f(x). What is the average rate of change of f(x) from −2 to 2? xf(x) ​−2​25 ​−1​24 021 116 29 30 Enter your answer in t
What is the end behavior when the degree of the numerator is less than the degree of the denominator? a. The function approaches a horizontal asymptote. b. The