21. What will be the output of the
following code? x=2 y=3 x+=y
print(x,y)
O a) 53
Ob) 35
Oc) None
O d) Error
Answers
Answered by
1
Answer - 53
Explanation - x + = y means x = x + y i.e. x = 2 + 3
So, x = 5
and y = 3
.
.
.
.
HOPE THIS HELPS YOU
.
.
.
.
PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO
Answered by
1
Question:-
- Write the output of the following code snippet.
Solution:-
Given code,
x=2
y=3
x+=y
print(x, y)
Here x=2
y=3
x+=y means x=x+y (x+=y is a shorthand)
So,
x=2+3
Or,
x=5
y=3
So, x and y will be printed.
Output:-
53
Similar questions
English,
3 months ago
Music,
3 months ago
Hindi,
8 months ago
Accountancy,
1 year ago
Science,
1 year ago