The U.S. Food & Drug Administration (FDA) offers downloadable/printable postersLinks to an external site. that “show nutrition information for the 20 most frequently consumed raw fruits … in the United States. Retail stores are welcome to download the posters, print, display and/or distribute them to consumers in close proximity to the relevant foods in the stores.” In a file called nutrition.py, implement a program that prompts consumers users to input a fruit (case-insensitively) and then outputs the number of calories in one portion of that fruit, per the FDA’s poster for fruitsLinks to an external site., which is also available as textLinks to an external site.. Capitalization aside, assume that users will input fruits exactly as written in the poster (e.g., strawberries, not strawberry). Ignore any input that isn’t a fruit. PLEASE SEE IMAGES FOR DETAILS (**use PYTHON**)
**USE PYTHON**
The U.S. Food & Drug Administration (FDA) offers downloadable/printable postersLinks to an external site. that “show nutrition information for the 20 most frequently consumed raw fruits … in the United States. Retail stores are welcome to download the posters, print, display and/or distribute them to consumers in close proximity to the relevant foods in the stores.”
In a file called nutrition.py, implement a
PLEASE SEE IMAGES FOR DETAILS (**use PYTHON**)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images