Q13.Consider the following Python code snippet. What will be the output when you run the code?
```
x = 15
y = 20
if x > y:
result = x - y
elif x < y:
result = y - x
else:
result = x + y
print(result)
```
Save
Check
Details
Q13
16 Jul 2023
Q13.Consider the following Python code snippet. What will be the output when you run the code?
```
x = 15
y = 20
if x > y:
result = x - y
elif x < y:
result = y - x
else:
result = x + y
print(result)
```