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

what is the best estimate for the product of 289 and 7
when i take half of my number and add two, i get twenty four
What is the answer to this solution 16(3b—0.25)
Is 16:12 and 64:60 equivalent?
what were the primary improvement that Americans reaped from industrialization and unbanization
Circle the difference 9 - 4=5
How was Oliver Cromwell different from the monarchs who preceded him?
$420 for 15 tickets how do i solve this?
What numbers multiply to get 720
What issue were the Virginia and New Jersey Plans attempting to resolve?