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

A 10 cm3 block of paraffin (a type of wax) weighs 0. 085 N. It is carefully submerged in a container of gasoline. One cm3 of gasoline weighs 0.0069 N. a. What
At 27.00 °c a gas has a volume of 6.00 L . What will the volume be at 150.0 °c
Which words in the sentence make up the adverb phrase? When the sun is shining, my family enjoys walking around the neighborhood. a. is shining b. When the su
What is the mass of a 735-N weight on Earth? A. 73.5 kg B. 75.0 kg C. 334.1 kg D. 725.2 kg
Why does a substance change states?
How do you take the derivative of lnx?
what nucleotide pairs with with T?with C?
A delivery truck drove 44 miles per hour. It took 2 hours to travel between two towns. What is the distance between the two​ towns
In a chemical reaction, the products are? A. the new substances that are formed during the reaction. B. the substances that are broken apart or combined in the
write a unit rate for the situation. round to the nearest hundredth if necessary traveling 216 miles in 5 hours