Scientific Computing with Python Projects - Time Calculator

Tell us what’s happening:
I have tested manually the code, and from the “AssertionError” my output seems to be right, but i am having 12 failed tests.

Your code so far

Time Calculator - Tont Santos - Replit

Your browser information:
Brave Browser

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Time Calculator

Link to the challenge:

Hi Randell, thank you for reading my post.

Now that you asked, I re-read the code and I realized it’s not doing anything useful because it won’t return a None value anyway.

My thinking was to avoid errors in the code in case the input doesn’t include the ‘Day’ field.

Since you set ‘day=None’ for the third parameter, it automatically makes it an optional parameter since it already has a default value of None, therefore you don’t need the code RandellDawson was referring to. You may have already realized that, but just clarifying.

1 Like

Hello, Ben,

Thank you for your reply. I had indeed realized it with Randell’s answer, but it is good you cleared it up :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.