Apr-01-2019, 09:28 PM
for those who may be interested in the answer this block of code has to be one level in ( below else ):
if withVal > withoutVal: result = (withVal, withToTake + (nextItem,)) else: result = (withoutVal, withoutToTake)I also had to add comma to avoid some error that I don't understand.