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

You take random sample of 200 people from Salinas and find that their average income is $48,000 per year with a standard deviation of $9000. Also assume that po
hi how are ya doing peeps
Is baking soda a element, compound or a mixture?
Jacob earned $105 and deposited the $ into his account. Next week he spent $85.
seven more than one fourth of a number is one less than one third of a number
8 The display on a calculator screen is shown below. 6.539058 E -8 What number does the calculator display represent? OA. 653,905,800 OB. 65,390,580 OC. 0.00000
Pick out the adjectives in the follo -wing sentences Every child came to school this morning
which square root should be placed between the number 17 and 18 on the number line.
What are the main reasons given for the early colonists coming to America?
8a-4(-5a-2)=12a solve please!!!