Question: Lab 5.5 (Do this problem on the shell) Create a tuple that contains abbreviation of days in a week: (Mon', Tues', 'Wednes', Thurs','Fri, Satur, 'Sun)

 Lab 5.5 (Do this problem on the shell) Create a tuple

Lab 5.5 (Do this problem on the shell) Create a tuple that contains abbreviation of days in a week: (Mon', Tues', 'Wednes', Thurs','Fri, Satur, 'Sun) Do the following: a) Convert the tuple to a list: [Mon', Tues', Wednes', Thurs', Fri', 'Satur COMP 3140 Python Programming Lab 5 Submission Sun b) Change the day abbreviations to full day names using list comprehensions: ['Monday, Tuesday, Wednesday', Thursday', Friday', 'Saturday', 'Sunday' c) Covet the full name list to tuple: (Monday, Tuesday, 'Wednesday', 'Thursday', Friday', 'Saturday, "Sunday) d) Let Python randomly select a day >omyDay Thursday e) Using tuple concatenation to replace that day with the word "Luckyday" in the tuple (Monday', Tuesday', 'Wedaesday', 'Luckyday', 'Friday", 'Saturday', 'Sunday)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!