Soccerheff918 Soccerheff918
  • 08-02-2024
  • Computers and Technology
contestada

What would the output be when the following nested if statements were executed?

x = 55
y = 13
if x % 2 == 0:
if y % 2 == 0:
print('x-x')
else:
print('x-y')
else:
if y % 2 == 0:
print('y-x')
else:
print('y-y')

a. x-y
b. y-y
c. x-x
d. y-x

Respuesta :

Otras preguntas

y and x vary inversely and y=6 when x=9 what is y when x equals x=2
[tex] \frac{5}{8} < \frac{3}{8} x - \frac{1}{4} [/tex]Solve the inequality and graph the solution.​
What political changes started by the Reformation are present today?
Please help A. Amino group B. Methyl group C. Carboxyl group D. Carbonyl group
Explain the reason there is no solution for the following equation. 14.3/sin81 = 17.9/sin0
(a + b)² = a² + 2ab + b2 with step by step explanation​
There are 6 roses in a vase of flowers. The rest are daisies. (a) What is the ratio of all flowers 15 in the vase to daisies? (b) What is the ratio of roses to
Learning Task 1-Directions:Complete the sentences with the corretword or words from the box below
Write an expression for the operation described below. the product of r and s
This is slopes — what is ( 7, 12 ) , ( 19 , -4 ) ?