Computer Science, asked by jinay946, 6 months ago

For two objects x and y, the expression x is y will yield True, if and only if
a) id(x)==id(y)
b) len(x)==len(y)
c) x==y
d) all of these​

Answers

Answered by vanshikaraghuvanshi
21

Answer:

ans is :- C

Explanation:

hope it is helpful for you

Answered by anvitanvar032
0

Answer:

The correct answer of this question is  id(x)==id(y).

Explanation:

Given -  Two objects x and y, the expression x is y will yield True.

To Find - Choose the correct option.

id(x) == id(y) is the objects of  x and y .id(x) == id(y) is the expression x is y will yield True.

Immutable data types: Operations that calculate new values for immutable data types may actually return a reference to any existing object of the same type and value.

In Python, each object has its own unique id. When an item is formed, it is given an id. The id is the memory address of the object, and it will be different each time you execute the application.

#SPJ2

Similar questions