Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

78 bytes added, 08:17, 2 June 2017
PART 1 - Using Functions
::::<source>
run lab3a.py
</source> What did you notice?You should have seen two lines being displayed with a greeting and a result of a math calculation.<br><br>:#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 directoryls CheckLab3.py || wget matrix.senecac.on.ca/~acoatley-willis/CheckLab3.pypython3 ./CheckLab3.py -f -v lab3a</source>:#Before proceeding, make certain that you identify any and all errors in lab3a.py. When the checking script tells you everything is OK before proceeding to the next step.
:#Start up ipython3 shell again.<source>
ipython3
lab3a.return_number_value()
</source>
 
:#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
ls CheckLab3.py || wget matrix.senecac.on.ca/~acoatley-willis/CheckLab3.py
python3 ./CheckLab3.py -f -v lab3a
</source>
:#Before proceeding, make certain that you identify any and all errors in lab3a.py. When the checking script tells you everything is OK before proceeding to the next step.
Make notes for all of your observations in your lab log book, and proceed to Part 2.
13,420
edits