Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python 1. Create a list called Professor_Super Market with four elements from your favorite supermarket. 2. Print a string with the first and last
In python
1. Create a list called Professor_Super Market with four elements from your favorite supermarket. 2. Print a string with the first and last elements of the Professor_Super Market list. 3. Create a tuple called Yogurt_expiration with three elements: the month, day, and year of the expiration date on the nearest carton of Yogurt. 4. Print the values in the Yogurt_expiration tuple in a string that reads "This Yogurt carton will expire on 12/10/2005". 5. Create an empty dictionary called Yogurt_carton. Add the following key/value pairs. You can make up the values or use a real Yogurt carton: expiration_date - Set it to the Yogurt_expiration tuple. fl_oz - Set it to the size of the Yogurt carton on which you are basing this. Cost - Set this to the cost of the carton of Yogurt. brand_name - Set this to the name of the brand of Yogurt you're using. 6. Print out the values of all of the elements of the Yogurt_carton using the values in the dictionary,and not, for instance, using the data in the Yogurt_expiration tuple. 7. Show how to calculate the cost of six cartons of Yogurt based on the cost of Yogurt_carton. 8. Create a list called cheeses. List all of the cheeses you can think of. Append this list to the Professor_Super Market list, and look at the contents of Professor_SuperMarket. Then remove the list of cheeses from the array. 9. How do you count the number of cheeses in the cheese list? 10. Print out the first five letters of the name of your first cheeseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started