Question: Side note there should be 2 different modules, (1 function then import that to the other module) Complete the following function in the food_utilities.py module:
Side note there should be 2 different modules, (1 function then import that to the other module)
Complete the following function in the food_utilities.py module:
def get_food(): """ ------------------------------------------------------- Creates a food object by requesting data from a user. Use: f = get_food() ------------------------------------------------------- Postconditions: returns: food - a completed food object (Food). ------------------------------------------------------- """
Use the following input format:
Name: Origin 0 Canadian 1 Chinese 2 Indian : Vegetarian (Y/N): Calories:
Test this function by printing out the resulting Food object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
