Write a program in python that asks for the number of caloriesand fat grams in a food. The program should display the percentageof calories that come from fat. If the calories from fat are lessthan 30% of the total calories of the food, it should display amessage indicating the food is low in fat. Calories from fat = fatgrams * 9
The percentage of calories from fat can be calculated as:Calories from fat / total calories
Make sure the number of calories and fat grams are not less than0. Also, the number of calories from fat cannot be greater than thetotal number of calories. If that happens, display an error messageindicating that either the calories or fat grams were incorrectlyentered
Expert Answer
Answer to Write a program in python that asks for the number of calories and fat grams in a food. The program should display the p…