I have in input a list of tuples with a string and a list of integers. The integers goes from `1` to `n` and they appear at most one time:

```
l = [('red', [0,2,5]),
     ('yellow', [1,4]),
     ('red', [6])]

```

I want to create a list of `n` strings where if the index appear in one of the lists, it's value will be the corresponding string and if it doesn't appear a default value will be applied, for example `white`.

This is the expected output:

```
result = ['red', 'yellow', 'red', 'white', 'yellow', 'red', 'red']

```

This is my code, it works fine but I'm wondering **if there is a faster way to do it**:

```
result = ['white'] * n

for t in l:
    for i in t[1]:
        result[i] = t[0]

```

Edit:

I forgot to say that `n` is about 300.