Changes

Jump to: navigation, search

OPS435 Python Lab 4

13 bytes added, 12:51, 15 June 2017
PART 2 - Sets
:'''Perform the Following Instructions'''
::#Create the '''~/ops435/lab4/lab4a.py''' script. The purpose of this script will be to demonstrate the different way of comparing sets. There will be three functions, each returning a different set comparison.
::#Use this the following template to get started:<source>
#!/usr/bin/env python3
:::*The script should show the exact output as the samples
:::*The script should contain no errors
 
::::'''Sample Run 1:'''<source>
run lab4a.py
diff: {1, 2, 3, 4, 10, 11, 12, 13, 14}
</source>
::::'''Sample Run 2(with import):'''<source>
import lab4a
set1 = {1,2,3,4,5}
diff: [1, 2, 3, 4, 10, 11, 12, 13, 14]
</source>
 ::::'''Sample Run 2(with import):'''<source>
import lab4b
list1 = [1,2,3,4,5]
13,420
edits

Navigation menu