Changes

Jump to: navigation, search

OPS435 Online Lab4

7 bytes removed, 11:54, 15 October 2020
Create a Python Script for Managing Dictionaries
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://ict.senecacollege.ca/~raymonderic.chanbrauer/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4a
</source></li>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://ict.senecacollege.ca/~raymonderic.chanbrauer/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4b
</source>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://ict.senecacollege.ca/~raymonderic.chanbrauer/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4c
</source>
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://ict.senecacollege.ca/~raymonderic.chanbrauer/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4d
</source>
s1 = 'Seneca'
print(s1, 'contains letter s? ->', 's' in s1))print(s1, 'contains letter S? ->', 'S' in s1))
</source>Did it produce the same result as the find() function in previous python code example?
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
ls CheckLab4.py || wget https://ict.senecacollege.ca/~raymonderic.chanbrauer/ops435/labs/LabCheckScripts/CheckLab4.py
python3 ./CheckLab4.py -f -v lab4e
</source></li>

Navigation menu