```
votess = [['Y AFGHANISTAN','Y INDIA','Y NEPAL','N UNITED STATES'], ['Y AFGHANISTAN','N INDIA','Y NEPAL','      MALI','Y UNITED STATES'], ['N AFGHANISTAN','Y INDIA','Y NEPAL', '      MONGOLIA',' N UNITED STATES']]

```

expected output,

![1](https://i.stack.imgur.com/leprC.png)

I have tried this way but it does not work

```
lis = []
for votes in votess:
    row_to_be_appended = ()
    for vote in votes:
        row_to_be_appended[vote[2:]] = vote[0]
        lis.append(row_to_be_appended)

```