Question: Define a function is _ weekend that has no parameters and return a Boolean indicating whether the current day of the week is a weekend.
Define a function isweekend that has no parameters and return a Boolean indicating whether the current day of the week is a weekend. Read the day of the week from user input inside the function. Dont use an if statement
Parameters: None
Output: boolean
Example
User Input not function input: Sunday
Output: True
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
