Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

6 bytes added, 03:33, 30 May 2017
no edit summary
20
</source>
::4. Exit the ipython3 shell, download the checking script and check your work. Enter the following commands from the bash shell.<source>
cd ~/ops435/lab3/
pwd #confirm that you are in the right directory
python3 ./CheckLab3.py -f -v lab3b
</source>
::5. Before proceeding, make certain that you identify any and all errors in lab3b.py. When the check script tells you everything is ok before proceeding to the next step.
'''Multiple Arguments and IF Statements'''
:::*The script should contain show the exact output as the sample imports
:::*The script should contain no errors
:::3. Sample Run 1:<source>
run lab3c.py
15
Error: function operator can be "add", "subtract", or "multiply"
</source>
:::4. Sample Import 1:<source>
import lab3c
Error: function operator can be "add", "subtract", or "multiply"
</source>
::5. Exit the ipython3 shell, download the checking script and check your work. Enter the following commands from the bash shell.<source>
cd ~/ops435/lab3/
pwd #confirm that you are in the right directory
python3 ./CheckLab3.py -f -v lab3c
</source>
::6. Before proceeding, make certain that you identify any and all errors in lab3c.py. When the check script tells you everything is ok before proceeding to the next step.
== PART 3 - Running System Commands with Subprocess ==
198
edits