fork download
  1. # your code goes here
  2.  
  3. dict = {}
  4. dict[0] = [1]
  5. print(dict)
  6. dict[0] += [2]
  7. print(dict)
Success #stdin #stdout 0.02s 9128KB
stdin
Standard input is empty
stdout
{0: [1]}
{0: [1, 2]}