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

"code is broken down by the computer until it is in _____and is a very long series of ons and offs binary code decode logic
______________ is a technique that transfers an actor’s motions into a computerized character using a tight suit covered with tiny sensors called markers that r
CAN ANYONE STEP BY STEP EXPLAIN PLEASE ​
please help me i really need help
What is polarization?
Write an essay of at least 200 words that describes a revolution you would like to lead. Include a description of what you are revolting against and what you ho
Take home pay is equal to blank
Which word or phrase can be used to emphasize an important point? one reason especially finally even though Use the sentences to answer the question. A beagle m
EXPLAINING ISSUES What challenge did Congress face when establishing the nation's court system? How did Congress solve the problem?
Which two statements about the Jazz Age are true?