Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Sum of list items
Post: RE: Sum of list items

I have this one but It doesn't work as I wanted. import itertools import functools test_matrix = [] stuff = [100,500,300,200] for L in range(0, len(stuff)+1): for subset in itertools.combina...
tristanfermat General Coding Help 2 2,252 Feb-06-2021, 12:04 PM
    Thread: Sum of list items
Post: Sum of list items

Hello everyone If the sum of the numbers in the list1 is not 4000, it should give the closest value to 4000. The maximum number of elements of the output is 6. For example Sum = 4000 list1 = [400,...
tristanfermat General Coding Help 2 2,252 Feb-06-2021, 01:42 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020