fork download
  1. x = 1000
  2. y = 1000 # This time, we don't avoid constant merging.
  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.02s 27712KB
stdin
Standard input is empty
stdout
1000 1000
47558958173744 47558958173744
True
True