Question: Implement get _ seconds The function needs to get the seconds, minutes, and hours from the ISO 8 6 0 1 string, and then convert

Implement get_seconds
The function
needs to get the
seconds, minutes, and hours from the ISO 8601
string, and then convert everything to seconds. That
is why we have created several helpers - one for
each part of the string.
The first function to focus on is get_seconds. We
could have started with any of the helpers, but it is
best to choose this function because it is the first
one tested in the test script. In fact, we should
always use the test script as a guide for
implementing our functions. Implement this
function now. If you think about the precondition,
you should be able to implement this in a single
line. However, note that this function returns an
and not a . Think about how you can
convert types.
When you are done, run the test script. If you
implemented it correctly, you should pass all of the
test cases for
but fail the tests for
Check get_seconds
You may run this test multiple times.
Implement get _ seconds The function needs to get

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!