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

Read this outline for an argumentative essay about the free enterprise system. 1. The free enterprise system is helpful because it allows for freedom. A. The fr
Explain the War of 1812 in your own words
Explain the War of 1812 in your own words
4. What are the references used to describe the relative location of places?​
Why do feathers repel water?
I need answer for this question​
Trong đoạn trích trên, khi đưa lời khuyên cho En-ri-cô, bố cậu có nói: “Con phải xin lỗi mẹ, không phải vì sợ bố mà do sự thành khẩn trong lòng”. Viết đoạn văn
how fast can you take a pregnancy test after intercourse
Describe the roots of the polynomial function shown below:
What was Thomas Jefferson view of the national government