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 baseball diamond is a square with corners at home plate, first base, second base, and third base. The distance between home plate and first base is 30 yards.
What feline species of the Amazon ranks as the third­largest cat in the world? ocelot margay jaguar caraca
solve algebraically for all values of X
An ant looks up at an angle of elevation of 30 degrees to the top of a tree. If the ant is 40 feet from the base of the tree, what is the height of the tree, to
How do you find the zeros from this equation
The part of neuron that conducts impulses away from its cell body is called
PLEASE HELP WITH ENGLISH!!!! (20 pts)
does the following statement describe a function of dna, a function of rna, a function of both rna and dna, or either dna or rna? it takes the message from amin
PLEASE HELP AS SOON AS POSSIBLE
how did the teachings of confucius influence ancient china