Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BlockPy: # 2 2 . 2 ) Weekend Off The function cut _ day is supposed to consume a string representing the current day of
BlockPy: # Weekend Off The function cutday is supposed to consume a string representing the current day of the week, and then produce the current day without the "day" part at the end eg from cisc import assertequal dayofweek "Wednesday" def cutday: return dayofweek: assertequalcutday "Wednes" assertequalcutday "Thurs" assertequalcutday "Satur"
BlockPy: # Weekend Off
The function cutday is supposed to consume a string representing the current day of the week, and then produce the current day without the "day" part at the end eg from cisc import assertequal
dayofweek "Wednesday"
def cutday:
return dayofweek:
assertequalcutday "Wednes"
assertequalcutday "Thurs"
assertequalcutday "Satur"
Step 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