fork download
  1. d = {}
  2.  
  3. for i in range(5):
  4. d[i] = 2*i
  5.  
  6. print(d)
Success #stdin #stdout 0.01s 27704KB
stdin
Standard input is empty
stdout
{0: 0, 1: 2, 2: 4, 3: 6, 4: 8}