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

Why is RNA chemically unstable?
What is the climate like in the Himalayas, India?
With which of these positions would President Calvin Coolidge have agreed?
In one basketball season, Tim made 75% of the free throws he attempted. Tim made 36 free throws. How many free throws did he attempt? A. 27 B. 48 C. 61 D. 75
how do I solve this 2(4x^3+9m+3x^2)
An employment agency requires applicants average at least 70% on a battery of four job skills tests. If an applicant scored 70%, 79%, and 89% on the first three
What is the equation for a quadratic equation?
The principle difference between point source and nonpoint source water pollution is _______. a. whether the pollution is organic or inorganic b. the number of
If a Works Cited entry begins with the title of an article, we can assume that A. no author was listed. B. the information taken from that source isn't reliab
a period of abnormally high emotion and activity is called??