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

How is pressure measured? a. Pressure is measured as force per inch b. Pressure is measured as force per gram c. Pressure is measured as force per unit area d.
Which dimension deals with common sense and decision-making? physical spiritual social intellectual
what is 7/10 - 44/100 =
write two monomials whose greatest common factor is 4m
6(22+9) what is this answer
James bought for 8 ounce bottles of water for a hiking trip he drank 28 ounces how many ounces of water are left
Go math chapter 5 5.4 I need help please PICTURE SHOWN
what number is 65 percent of 74
The price of a miniature toy car in 1968 was 0.295% of its current price. Today the car is a collector's item and is priced at $200. What was the price of the
Bob is training for a race. Bob ran 14.6 miles away from his home. Then, Bob ran 9.8 miles towards his home. Finally, bob ran 5.3 miles away folrom his home. Ho