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

A prokaryotic cell may possess each of the following cellular components except ribosomes? flagella. a nucleus. a cell wall. a cell membrane.
Literacy, What are the high and lower points in literacy history?
In regions where the sun's rays hit at an angle, solar energy is----and climate is----
What integration strategies should be used when implementing new technology in a health care organization?
Plotting locations of the magnetic poles how far did the pole move in one year
Need help on all questions: 34-37.
Each passage contains a sentence fragment. Select the revision that has no fragment. George Balanchine (1904-1983) was the founding artistic director of the New
3 |14-m| > 18 PLEASE HELPP
This quote by Sergei Rachmaninoff --"They have not the capacity to make their works exalt-- they meditate, protest, analyze, reason, calculate and brood, but th
Define and explain what is meant by caliber. name and describe three different caliber classes and name three different cartridge designations within that calib