I am having a data in the form of `ids` and `value` , where the value of ids are not continuous , i want to store the data in arraylist.

For Java: 

```
ArrayList<Integer>[] Data = new ArrayList[1000000];
for(int i=0;i<Data.length;i++) Data[i] = new ArrayList<>();

for(int i=0;i<n;i++){
    int id_index = in.nextInt();
    int value = in.nextInt();
    Data[id_index].add(value);
}

```

How to implement the same functionality in Python ?