Computer Science, asked by khushirajshekhar, 8 months ago

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 ArpitMishra506
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 anindyaadhikari13
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