Question: blockpy PYTHON 31.4 and 31.5 programming You are developing a system to process lists of days of the week, represented as strings. Create a function

blockpy PYTHON 31.4 and 31.5 programming

blockpy PYTHON 31.4 and 31.5 programming You are developing a system toprocess lists of days of the week, represented as strings. Create a

You are developing a system to process lists of days of the week, represented as strings. Create a function is_weekend that consumes a list and returns whether the list has the string "Saturday" or the string "Sunday" in it. Call and print this function once with a list of days of the week. Execution Idle Console True Feedback: Instructor Feedback You should pass a list literal to the function call! Run BlocksSplitTextC Reset Upload History def is_weekend (list): for day in list: if day "Saturday" or day Sunday": return True return False 7 week_days - ["monday", "tuesday", "wednesday", "Thursday", "friday' 8 print is_weekend (week_days))

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!