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

How did French and British leaders react to Hitler's annexation of the Sudetenland?
the average volume of water that flows over the falls each second is 6.5 times 10 to the 5th power gallons. how much water flows over the falls in an hour. writ
The heights (in inches) of 13 plants are 6, 9, 10, 10, 10, 11, 11, 12, 12, 13, 14, 16, and 17. What is the interquartile range of this data set? A) 3.5 B) 6 C
How did what happened to farmers during the 1920's foreshadow events of the great depression?
14) In what way does a Governor have the same legislative power as the President of the United States?
Which is a valid conclusion based upon a study of the New Deal ?
Help!?!? Can someone give me a brief overview of the executive branch?
In the first line of "The Road Not Taken," the word "diverged" most nearly means _____. 1. bend 2. split 3. merge 4. hang
how high is a 0.5 kg squirrel sitting if it has 36 j of energy
TO KILL A MOCKINGBIRD Atticus's one victory in the Robinson trial was _____. how long the jury deliberated the judge granted him an appeal