#!/usr/bin/env Python3

"""
1. set

check what are same and check what are difference from the following lists:

mylist =[6,6,7,8,9]
mylist2=[8,9,10,11]
"""



Answer:

#1. set

#check what are same and check what are difference from the following lists:


mylist =[6,6,7,8,9]
mylist2=[8,9,10,11]

myset=set(mylist)
myset2=set(mylist2)

print(myset.intersection(myset2))

#find the same one and differences
same=myset.intersection(myset2)
print(same)

mylist2specific=myset2-same
print("these are mylist 2 specific items: " + str(mylist2specific))


print("mylist1 specificd item is "+ str(myset.difference(myset2)))
print("mylist2 specific item is " + str(myset2.difference(myset)))