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

Jenna buys 12 lb of meat. Some of the meat is chicken and costs $1.90/lb. The rest is beef, which costs $4.30/lb. She spends a total of $34.80 Which equation m
3. What is the capacity of the cube in milliliters? A. 18 mL B. 72 mL C. 60 mL D. 216 mL ................................................... the lenth wid
A singer performed 9 songs at a recital. She had 3weeks to practice. How many songs did she practice each week if she practiced an equal number of songs each we
The air popper will make 14 cups of popcorn in 2 1/2 minutes. The oil popper will make 16 cups of popcorn in 3 1/2 minutes. Is there a proportional relationship
According to the Declaration of Independence, when do the people have the right to overthrow their government? when the government taxes the people too mu
what is the first step in estimating 56X27?(4.not.5)
One of the few countries that revolted against the congress system and was successful was?
Most of the people killed by Nazi Germany during the Holocaust were
16/18 into simplest form
why is 296 divided by 6 equals 48 remainder 8