I was learning about python tuples when I encountered a weird inconsistency. This code:
x = (1,2)
y = (1,2)
print(x is y)
This gives False in shell but True in IDLE. Is there a reason for that?
I was learning about python tuples when I encountered a weird inconsistency. This code:
x = (1,2)
y = (1,2)
print(x is y)
This gives False in shell but True in IDLE. Is there a reason for that?
Actually Python IDLE and shell uses different storage system for data types like tuple-() All other data types like :
are goning to show the same.