I need help trying to solve this problem using python

Can somebody help with this please…


How many people can ride at most when shared in two elevators?
You should get 8 of them.

This looks a lot like homework. If you’re stuck on a programming problem please ask about it, but I don’t think anyone here will want to just do it for you. :wink:

Also the task seems similar to the knapsack problem, maybe you can find some ideas there.

Thank you for telling me a similar problem.