Computer Science, asked by kamal02002, 11 months ago

What would the following code do :x=y=7

Answers

Answered by LuckyYadav2578
46

The code is

x=y=7

In the above code the value 7 is assigned to x and y both because assignment operator is used.

  • Assignment operator (=)

Check by yourself

If you will print x and y then, you will find that x and y both are equals to 7.

code will be like -

x = y = 7

print (" value of x is : ", x)

print (" value of y is : ", y)

output -

value of x is : 7

value of y is : 7

Answered by ranisoni576574
3

Answer:

here is your answer

Explanation:

please mark me as brainlist

Attachments:
Similar questions