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

The line with equation ax+by=20 passes through the points(-2,10) and (1,5)find a and b
What role should the government have in enforcing equal rights for Americans?
Evaporation: Evaporation is the process where a _________ changes into a _________.
The distance between the jones house and the smith house is 96 feet.How many yards is that?
Force and Motion: Force changes _________.
What was significant about the new habitats Darwin visited?
Tickets to a play cost $5 for adults and $2 for children. If 1,750 tickets were sold for a total of $7,100, how many children’s tickets were sold? Can someone e
Air Mass is a large body of air that has the same ____________ and ___________ throughout.
What kinds of activities made up the early economies of the North American colonies?
Description of what is an ecosystem