Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

530 bytes removed, 09:52, 22 January 2018
INVESTIGATION 1: USER INPUT
:#Now replace that line with this:<source lang="python">print('The colour I typed in is: ' + colour)
</source>Note what was displayed.
:#Now download the checking script and check your work. Run the following commands from the bash shell:<source lang="bash">
cd ~/ops435/lab2/
pwd #confirm that you are in the right directory
ls CheckLab2.py || wget https://raw.githubusercontent.com/Seneca-CDOT/ops435/master/LabCheckScripts/CheckLab2.py
python3 ./CheckLab2.py -f -v lab2a
</source>
:#Before proceeding, make certain that you identify any and all errors in '''lab2a.py'''. When the check script tells you everything is '''ok''' before proceeding to the next step.
''' Practice Storing User Input '''