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

Someone please help I’m having trouble
please help i’ve been struggling with this for awhile. please be serious or i will remove your points and comment. giving brainlest if explained thank you.
2. El torneo de ajedrez de Torrel se realiza una vez cada 2 años, mientras que el torneo de Burak es cada 3 años. Un jugador asiste a ambos torneos, pero en est
PLS HELP!! URGENT!!! what is g(x)? a- g(x)=-x^2 b- g(x)=-lxl c- g(x)=-2^x d- g(x)=-x
Suppose a commercial banking system has $ 100,000 of outstanding checkable deposits and actual reserves of 40,000. If the reserve ratio is 0.4%, the banking sys
invest in your health now or pay with your health later​
Marci sells tickets at the swimming pool. The first day, she sold 50 tickets. She keeps records of tickets sold each day. The table below shows her records for
5. Find the value of x. Enter the numeric value only. Round your answer to 10 point the nearest hundredth.
(HELP) What were the main themes of the Arab poems?​
Which is most true about sound waves? A.)Wavelength relates to energy and Amplitude relates to pitch B.)Frequency relates to pitch and Amplitude relates to loud