Open main menu

CDOT Wiki β

Changes

Rchan sandbox

762 bytes added, 23:38, 2 November 2019
no edit summary
print(ft(t3),'+',ft(td),'-->',ft(tsum3))
</source>
:7. Test run your script '''lab7c1.py''', it should produce the following output:<source lang="bash">
[rchan@centos7 lab7]$ python3 lab7c1.py
08:00:00 + 00:50:00 --> 08:50:00
08:55:00 + 00:50:00 --> 09:45:00
09:50:00 + 00:50:00 --> 10:40:00
</source>
:8. Download the checking script and check your work. Enter the following commands from the bash shell.<source lang="bash">
cd ~/ops435/lab7/
pwd #confirm that you are in the right directory
ls CheckLab7.py || wget https://ict.senecacollege.ca/~raymond.chan/ops435/labs/LabCheckScripts/CheckLab7.py
python3 ./CheckLab7.py -f -v lab7a
</source>
:9. Before proceeding, make certain that you identify all errors in lab7a.py. When the checking script tells you everything is OK - proceed to the next step.
<br><br>
1,760
edits