May-03-2018, 08:30 PM
(This post was last modified: May-03-2018, 08:37 PM by Otbredbaron.)
Thanks for your answer, I think I almost got every point of your post (I'll write the function but I know how to do that so it's not an issue):
#!/usr/bin/python3 L = [[1,2,3],[5,6]] a = [sum(i) for i in L] print (a)Did you mean to do something like this?