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

4. The stock market goes up more often that it goes down. Assume the probability that the stock market goes up in a randomly selected month is 60%. a. What is t
1. star nucle- 2. citizen extra- 3. color post- 4. before re- 5. beyond pre- 6. to rule astro- 7. land domin- 8. after poli- 9. center aqua- 10. back a
What is the domain of the function y=2 sqrt x-6 ?
Do sharks have bacteria in their stomach that let them digest their food
What political and economic impact did the fall of Saigon have on the United States and Vietnam?
The United States' strategy to rebuild Europe after World War II was called the A. Marshall Plan. B. Treaty of Versailles. C. League of Nations. D.
which of the following could be side lenths of a right triangle? A.) 0.9cm, 1.2cm, 1.5cm B.) 0.9cm, 1.5 cm, 1.5cm C.) 0.9 cm, 1.2cm, 1.8cm D.) 0.9cm, 0.6cm, 1.5
Making Words, use the letters on the top.​
Find the area of the Figure. would love some help, please, and thank you
remmi wrote the equation of the line y=1/3(x+2). He solved for x and got x=3y-2. which following is an equivalent equation for x?