Question: BlockPy: 3 ) Numeric Day In the code below, you need to write unit tests to evaluate a function named numeric _ day. numeric _

BlockPy: 3) Numeric Day
In the code below, you need to write unit tests to evaluate a function named numeric_day.
numeric_day(day: str)-> int: Consumes a day representing the current day of week (e.g., "Wednesday") and returns the corresponding numeric version of that day. Monday is 0, Tuesday is 1, and so on. If the day is not a valid day, then return -1 instead. Any capitalization should be ignored, but no abbreviations are allowed.
Rerrember: You should not implement the numeric_day function yourself! Write the tests!*
3
Console:
Feedback:
Failed Instructor Test
I ran your test cases against some of my own implementations of numeric_day.
BlockPy: 3 ) Numeric Day In the code below, you

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 Programming Questions!