Computer Science, asked by 87kushalrathore, 2 months ago

Give the output of x, y = 2 , 6


x , y = y , x+2

print x , y

a) 6 , 4

b) 4 , 6

c) 2 , 4

d) 6, 2

Answers

Answered by anindyaadhikari13
0

Answer:

Language: Python.

Given that,

→ x = 2 and y = 6

After evaluation,

→ x, y = y, x + 2

→ x, y = 6, 2 + 2

→ x, y = 6, 4

Therefore,

→ x = 6 and y = 4

So, the final values of x and y are printed.

print(x, y) prints the value of x and y with a space in between.

So, the output is,

6 4

Option a is the right answer for the question.

Output:

  • 6 4 (Option a).

•••♪

Similar questions