Changes

Jump to: navigation, search

OPS435 Python Lab 2

5 bytes added, 02:35, 25 May 2017
INVESTIGATION 1: USER INPUT
Hi Jen, you are 25 years old.
</source>
:::2. Download the check script and check your work. Enter the following commands from the bash shell.<source>
cd ~/ops435/lab2/
pwd #confirm that you are in the right directory
python3 ./CheckLab2.py -f -v lab2b
</source>
:::3. Before proceeding, make certain that you identify any and all errors in "lab2b.py". When the check script tells you everything is "ok", you may procede to the next step.
== PART 2 - ARGUMENTS ==
Hi Jen, you are 25 years old.
</source>
:::2. This final sample run will give us a error. This is important to see this, as we will fix it in the next section. This error happens if you run the script without any arguments. Since we still try to use them. Lets move forward and leave this error, until we have the right tools to fix it.
:::Sample run 3:<source>
run lab2c.py
IndexError: list index out of range
</source>
:::3. Download the check script and check your work. Enter the following commands from the bash shell.<source>
cd ~/ops435/lab2/
pwd #confirm that you are in the right directory
python3 ./CheckLab2.py -f -v lab2c
</source>
:::4. Before proceeding, make certain that you identify any and all errors in "lab2c.py". When the check script tells you everything is "ok", you may procede to the next step.
= INVESTIGATION 2: IF STATEMENTS =
198
edits

Navigation menu