This is companion code explaining the solution presented in this article on my website. If you haven't already, read the article for a detailed explanation of the purpose and design choices behind this program.
- Python 3 with
numpy
installed.
$ python3 food.py
# example:
$ python3 food.py
What is your max daily budget in dollars?
>>4
What is your desired daily calorie intake?
>>2000
31 cases to consider, okay!
Ayt Miss. Here is your $3.89 meal:
- Old El Paso Flour Tortilla Shells: 1.0 units
- Black beans: 2.0 units
It gives you 25% fat 94% carbs 127% protein of your daily intake