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

An animals genetic makeup can influence its behavior true or false
What allowed Native Americans in Mexico to settle cities larger than those in areas to the north?
In the 17th and 18th centuries,the primary goal of mercantilism as practiced by European countries was to
Which element has the highest melting point?(1) tantalum (3) osmium (2) rhenium (4) hafnium
What two numbers add up to 45 and multiply and get 121
Peter has changed his diet to eat healthier. 2/3 of his meals are gluten free and of those gluten free meals 1/2 are vegan. How much of his total diet is gluten
Given the balanced equation representing a reaction: H2(g) + Cl2(g) ==>2HCl(g) + energy Which statement describes the energy changes in this reaction? (1) En
the circumference of a circle is 11pi inches. what is the area, in square inches, of the circle? express in terms of pi.
how do cyclones cause destruction in places near sea
The only haploid cells in an organism are _____. parent cells gametes homologous