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

How does Oedipus respond to Creon?
These cards are put into a bag:1 2 3 4 5 6 7 8 9 10One card is chosen at random.a)What is the probability of choosing the card with the number 4?b)What is the p
Which of the following statements best describes an animal impacting the hydrologic cycle? OA. When an animal breathes out, water vapor from inside the animal's
Which is an example of a chemical change? A. heating a block of ice to form liquid water B. heating a tungsten wire until it glows brightly C. adding sugar crys
Which of the following is the best definition for the term climate?
Please help me I don’t understand
The depth of a man’s voice relates to which of the following? Length of neck Size of Adam's apple Size of vocal cords Size of the larynx
did you encounter any difficulties in choosing the graph of the given situations.​
need to know asap!! thanks
who encouraged colonist too settle Arkansas? rene robert de la salle jacques marquette John law chief casqui​