1,760
edits
Changes
→PART 1 - Prompt the user for input data
:#Try running this script and study the output:<source>
./lab2a.py
</source>:3. #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
python3 ./CheckLab2.py -f -v lab2a
</source>
:4. # Before proceeding, make certain that you identify any and all errors in '''lab2blab2a.py'''. When the check script tells you everything is '''OK''', you may procede to the next step.
:#Copy lab2a.py to lab2a1.py and replace the print() call in lab2a1.py with the following (you can just comment-out the print() call using a '''#''' at the beginning of the line): <source lang="python">
colour = input("Type in a colour and press enter: ")