Question: Why can't I add values to the list inside a created class? ex. I write carType\_list.add

```
class Vehicles
{
    List<string> carType_list = new List<string>();
    List<string> carModel_list = new List<string>();
    List<int> seatCapacity_list = new List<int>();
    List<string> mileageLimit_list = new List<string>();
    List<double> ratings_list = new List<double>();
    List<double> rentPrice_list = new List<double>();
}

```

Answer: 
Initially ignoring the fact that the logic to generate the combinations of 3 dice is wrong, I am going to address your main questions first:

> 
> 1. The following works but only prints one roll of the dice equalling 5,
> 
> 
> 

This is because in the DataFrame that you have generated has only one row the sum of which equals 5. If you replace 5 with 10, we can see multiple rows:

```
sum_roll = df[df['eventA']==10

```

Alternatively change the logic to generate (all) the combinations.

> 
> 2. The following prints a 2 before printing the individual dice rolls,
> 
> 
> 

This is the DataFrame index being printed. One way of losing it would be as follows:

```
print(sum_roll.to_string(index=False))

#Output
Red die  Blue die  Green die  eventA
       2         4          4      10
       3         5          2      10
       4         2          4      10
       5         3          2      10

```

As mentioned above, your logic to generate the combinations is not correct. Here is a way to correctly generate a DataFrame with all the combinations with `itertools`.

```
import pandas as pd
from itertools import product

myList = list(product(range(1,7), repeat=3))
df = pd.DataFrame(myList, columns=['Red die', 'Blue die', 'Green die'])
print(df)

```

We must remember that there are 3 dice, there should be `(6 * 6 * 6) = 216` combinations generated.
This will do it:

```
from itertools import product

A  = [x for x in product(range(1,7), repeat=3) if sum(x) == 5]

```