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

If f(x) = 3X + 10x and g(x) = 4x - 2, find (f+g)(x). O A. 17x - 2 O B. 3* + 6x + 2 O C. 3* - 6x + 2 D. 3X + 14x-2 help!!!
The partners share profits and losses in the ratio of 5:3:2, respectively. The partners agreed to dissolve the partnership after selling the other assets for $5
you will need to make sure that you have read 2-1 setting and reaching goals
Tim did a survey at a large shopping centre. He asked 400 visitors to the centre to choose the main reason for their visit. The reasons were shops, free parking
Please answer i will give you brainlest please help me
passive form of "Is anybody making the tea ."​
You want to invest $37,000 today to accumulate $41,650 to buy a car. If you can invest at an interest rate of 3% compounded annually, how many years will it tak
A flag pole 18m high casts a shadow 9.6m long . Find the distance of top of pole from the far of end of Shadow. ​
Please answer of question num 20 and 21 only please
Problems and Applications Q2 Your aunt is thinking about opening a hardware store. She estimates that it would cost $500,000 per year to rent the location and b