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 statement best describes a republic?
Mrs.Henderson had 7/12dozen eggs in her refrigerator.Then she used 1/6 dozen eggs to make a cake.What fraction of a dozen is left?
Please help with Algebra 1
In a standard dictionary, where can you find the key to pronunciation marks? A. In an appendix B. In the front of the dictionary C. At the bottom of each page D
Please help solve, thanks in advance!
What is the additive inverse of -4a
31+34=90-n 45+1=70-k 6×9=41+m
does a human body use neon???
what rule does static electricity follow
Angie takes a random sample of 100 students in her school and finds that 58% of the sample prefers art over music. There are 1,200 students in the school. Based