Q2.Consider the below code. Select the possible output(s) of the given code, assuming any possible values for `x`, `y`, and `z`.
```
if x:
print('x')
else:
if y:
if z:
print('z')
print('y')
else:
print('none')
```
Save
Check
Details
Q2
26 Oct 2025
Q2.Consider the below code. Select the possible output(s) of the given code, assuming any possible values for `x`, `y`, and `z`.
```
if x:
print('x')
else:
if y:
if z:
print('z')
print('y')
else:
print('none')
```