1,760
edits
Changes
→Part 1 - Classes and Methods for our Time objects
</source>
: Please notice that the function named sec_to_time() did not get moved under the class block. It remains as an external function.
:1. Create [https://ict.senecacollege.ca/~raymond.chan/ops435/labs/lab7/lab7d.py Download] or create a new python file and name it as '''lab7d.py''' and place the code listed above in it.
:2. Save the file, and test the new time object in an interactive Python shell: <source lang="bash">
[rchan@centos7 lab7]$ python3