fork download
  1. #!/usr/local/lib/python3
  2.  
  3. q = (1, 2, 3)
  4. print(id(q))
  5. q = q + (5,)
  6. print(q)
  7. print(id(q))
  8.  
  9.  
Success #stdin #stdout 0.01s 27704KB
stdin
Standard input is empty
stdout
47234720873424
(1, 2, 3, 5)
47234720856728