Changes

Jump to: navigation, search

OPS435 Python3 Lab 2

4 bytes added, 16:36, 12 September 2019
PART 1 - Using IF Statements
:::*The script should use an object called '''name'''
:::*The script should use an object called '''age'''
:::*The script should use assign the string '''sys.argv[1]''' (first argument)to the object "name" :::*The script should use assign the string '''sys.argv[2]''' (second argument):::*The script should store the values in to the correct objectsobject "age"
:::*The script should print the EXACT OUTPUT as shown
cd ~/ops435/lab2/
pwd #confirm that you are in the right directory
ls CheckLab2.py || wget https://rawict.githubusercontentsenecacollege.comca/Seneca-CDOT~raymond.chan/ops435/masterlabs/LabCheckScripts/CheckLab2.py
python3 ./CheckLab2.py -f -v lab2d
</source>
:::4. Before proceeding, make certain that you identify any and all errors in '''lab2d.py'''. When the check script tells you everything is '''OK''', you may procede proceed to the next step.
== PART 2 - Using IF/ELIF/ELSE Statements ==
1,760
edits

Navigation menu