Changes

Jump to: navigation, search

OPS435 Python Lab 5

76 bytes removed, 01:21, 11 September 2017
Create a Python Script Which Handles Errors
=== Create a Python Script Which Handles Errors ===
:'''Perform the Following Instructions'''::#Create the '''~/ops435/lab5/lab5c.py''' script.::#Use the following as a template:<source lang="python">
#!/usr/bin/env python3
::::'''Sample Run 1:'''<source lang="python">
python3 lab5c.py
15
</source>
::::'''Sample Run 2 (with import):'''<source lang="python">
import lab5c
:::3. Exit the ipython3 shell, download the checking script and check your work. Enter the following commands from the bash shell.<source lang="bash">
cd ~/ops435/lab5/
pwd #confirm that you are in the right directory
python3 ./CheckLab5.py -f -v lab5c
</source>
:::4. Before proceeding, make certain that you identify any and all errors in lab5c.py. When the checking script tells you everything is OK before proceeding to the next step.
<br><br>

Navigation menu