fork download
  1. # your code goes here
  2. x=12345
  3. y=x-1+1
  4. print "X=%s; Y=%s"%(x,y)
  5. print "X is Y? == ?",x is y
  6. print "X == Y? == ?",x == y
  7. print "id(x)=",id(x)
  8. print "id(y)=",id(y)
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
X=12345; Y=12345
X is Y? == ? False
X == Y? == ? True
id(x)= 147122724
id(y)= 147122928