what is the output of this program? numa = 2 numb = 3 if numa == 2 and numb == 2: print(\yes\) elif numa ==…

what is the output of this program? numa = 2 numb = 3 if numa == 2 and numb == 2: print(\yes\) elif numa == 2 and numb == 3: print(\no\) output:

what is the output of this program? numa = 2 numb = 3 if numa == 2 and numb == 2: print(\yes\) elif numa == 2 and numb == 3: print(\no\) output:

Answer

Explanation:

Step1: Check first condition

The first if condition checks if numA == 2 and numB == 2. Here numA = 2 but numB = 3, so this condition is False.

Step2: Check second condition

The elif condition checks if numA == 2 and numB == 3. Since numA = 2 and numB = 3, this condition is True.

Answer:

no