Calculating the amount of products to equal a certain amount in Python
So, I have a number which is total_ttc and products that have their original price and the tva (code attached below). What I am trying to do is find a combination of random products with random quantities who’s price adds up to the total_ttc which I have already defined.