• + 0 comments

    +1 for the use of zip().

    Remarks: You don't need to create the list of the values you want to sum (except when you want to use them twice, as (more or less) required for W). So the "list()" and [...] are not needed (except for W), which will save space & time required for memory allocation.

    Also, split() is not needed for the single value N and ' ' is default & thus not needed in split().