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


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
Get step-by-step solutions from verified subject matter experts
