fork(1) download
  1. x = 1000
  2. y = x + 1 - 1 # not just y = 1000, to avoid a *second* implementation detail
  3.  
  4. print(x, y)
  5. print(id(x), id(y))
  6. print(id(x) == id(y))
  7. print(x is y)
Success #stdin #stdout 0.03s 27712KB
stdin
Standard input is empty
stdout
1000 1000
47383510474288 47383511847984
False
False