<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Class Python Demos
I will be using this Notebook for class demos. To use at home, load Anaconda (https
Step1:  Let's look at what set() does!
Step2:  Let's create a 2nd list and set.
Step3:  ...and look at the differences!
Step4:  See https
<ASSISTANT_TASK:>
Python Code:
import numpy as np
nums1 = np.random.randint(1,11, 15)
nums1
Explanation: Class Python Demos
I will be using this Notebook for class demos. To use at home, load Anaconda (https://www.continuum.io/downloads) or WinPython (https://winpython.github.io/)
Set() demo
First let's create a random list using the numpy library.
End of explanation
set1 = set(nums1)
set1
Explanation: Let's look at what set() does!
End of explanation
nums2 = np.random.randint(1,11, 12)
nums2
set2 = set(nums2)
set2
Explanation: Let's create a 2nd list and set.
End of explanation
set2.difference(set1)
set1.difference(set2)
Explanation: ...and look at the differences!
End of explanation
# Intersection
set1 & set2
# Union
set1 | set2
# Difference
(set1 - set2) | (set2 - set1)
# Difference method 2
(set1 | set2) - (set1 & set2)
Explanation: See https://en.wikibooks.org/wiki/Python_Programming/Sets for more information about sets!
End of explanation
<END_TASK>