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

In the binomial probability​ formula, the variable x represents the​ _______. In the binomial probability​ formula, the variable x represents
The drag force pushes opposite your motion as you ride a bicycle. If you double your speed, what happens to the magnitude of the drag force? A) The drag force g
WILL GIVE BRAINLIEST!Which changes of state do the labels represent? A. B. C. CondensationDepositionFreezing​
What is the difference between backstopping and braking in terms of the applications in which they are used?
Calculate the percentage change in per capita real GDP between 2018 and​ 2019: nothing​%. ​(Enter your response as a percentage rounded to two decimal​ places.
Why does the narrator compare the dirty pair of socks to a "sad little saltedslug"?​
In a college dormitory,1/10 of the residents are juniors and 2/5 of the residents are sophomores. What fraction of the students at the dormitory are juniors and
List the states in the union. How many total states are in the Union?
17 points Need answer fast
I need help please ?!!!