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

Folk ok music rhythm usually follows _ patterns
Which expression represents “add 7 and a number n, then multiply 8 cubed!?”
the area of the square rug is 121 square feet. what is the length of the side of the rug
If the interest earned by a cd is compounded continuously which rule is the most accurate when calculating how long it will take the money invested int eh CD to
if you are suffering from allergies or a cold a doctor will likely recommend which type of drug
What are the vertices of the hyperbola with equation 4y^2 -25x^2=100
Why are British manufacturers dumping goods on the American market
An opera singer in a convertible sings a note at 700 hz while cruising down the highway at 83 km/h . the speed of sound in the air is 343 m/s. part a what is th
Boston Tea Party. where did they throw the tea
The base of a solid in the region bounded by the graphs of y=e^-xy=0, and x=0, and x=1. cross sections of the solid perpendicular to the x-axis are semicircles.