d = dict.fromkeys([1, 2, 3], [])d[1].append(1)d[2].append(2)d[3].append(3)print d
Standard input is empty
{1: [1, 2, 3], 2: [1, 2, 3], 3: [1, 2, 3]}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!