1,234
edits
Changes
→Create a Python Script Demonstrating Comparing Sets
=== Create a Python Script Demonstrating Comparing Sets ===
:'''Perform the Following Instructions'''
#!/usr/bin/env python3
</source>
./lab4a.py
set1: {1, 2, 3, 4, 5, 6, 7, 8, 9}
diff: {1, 2, 3, 4, 10, 11, 12, 13, 14}
</source>
import lab4a
set1 = {1,2,3,4,5}
# Will output {-2, -1, 0, 3, 4, 5}
</source>
<ol><li value='3' style="margin-left:40px25px;">Download the checking script and check your work. Enter the following commands from the bash shell:<source lang="bash">
cd ~/ops435/lab4/
pwd #confirm that you are in the right directory
python3 ./CheckLab4.py -f -v lab4a
</source></li>
<li style="margin-left:40px25px;">Before proceeding, make certain that you identify all errors in lab4a.py. When the checking script tells you everything is OK - proceed to the next step.</li></ol>
=== Create a Python Script Demonstrating Comparing Lists ===