Python Forum

Full Version: sum of int in list in a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have a list with list in it and i want to add the numbers from first list to another list , i need to add all lists together to form one list any help on how i should do this


data = [(0,1,1,1,1,1),
        (1,0,1,1,1,1),
        (1,1,0,1,1,1),
        (1,1,1,0,1,1),
        (1,1,1,1,0,1),
        (1,1,1,1,1,0)]
It is somewhat unclear what the expected result should be and what have you tried so far.