Question 13 - Week 2 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 2
Question 13
00:00
Est. 1 min
Marks:
+2.00
0.00
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) ```
Single correct
Easy Difficulty
16 July 2023
A
5
B
20
C
35
D
15