fork download
  1. x = 111213123
  2. y = x
  3. print(y is x)
  4.  
  5. for x in range(1000000, 10000000):
  6. y = x
  7. if not y is x:
  8. print(x)
  9.  
  10. m = [1, 2, 3, 4, 5]
  11. n = m
  12. print(m is n)
  13. m = [1, 2, 3]
  14. print(n)
  15. print(n is m)
Success #stdin #stdout 2.22s 7852KB
stdin
Standard input is empty
stdout
True
True
[1, 2, 3, 4, 5]
False