All combinations of list less than a number without itertools python

后端 未结 0 345
不知归路
不知归路 2021-01-19 05:08

Let\'s say I have a list z = [1,2,3] and I want to find out all combinations of list such that their sum is less than or equal 4. So the answer I am looking for is

An

相关标签:
回答
  • 消灭零回复
提交回复
热议问题