![]() ![]() SubmittingĬopy your project's URL and submit it to freeCodeCamp. The tests will run automatically whenever you hit the "run" button. We imported the tests from test_module.py to main.py for your convenience. The unit tests for this project are in test_module.py. Click the "run" button and main.py will run. For development, you can use main.py to test your time_calculator() function. The minutes in the duration time will be a whole number less than 60, but the hour can be any whole number. Assume that the start times are valid times. # Returns: 12:03 AM, Thursday (2 days later) add_time( "6:30 PM", "205:12")ĭo not import any Python libraries. # Returns: 2:02 PM, Monday add_time( "11:43 AM", "00:20") If you are working on a large plan, get the real coordinates latitude, longitude for two or more points and add them to the drawing. Pay close attention to the spacing and punctuation of the results. The day of the week in the output should appear after the time and before the number of days later.īelow are some examples of different cases the function should handle. If the function is given the optional starting day of the week parameter, then the output should display the day of the week of the result. If the result will be more than one day later, it should show (n days later) after the time, where "n" is the number of days later. ![]() If the result will be the next day, it should show (next day) after the time. The function should add the duration time to the start time and return the result. (optional) a starting day of the week, case insensitive.a duration time that indicates the number of hours and minutes.a start time in the 12-hour clock format (ending in AM or PM).Write a function named add_time that takes in two required parameters and one optional parameter: The section below explains all of the steps required to complete this assignment. ![]() Time Calculator assignment for FreeCodeCamp. Python Scientific Computing with Python Projects ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |