Project 7 -- Using Lists

Write a program that reads two lines from the text file "input.txt". Each line in the file consists of a sequence of words separated by blanks. Your program should do the following:

Hint: Sorting the two lists before computing the union and intersection is a good idea.


List 1               List 2        Intersection          Union

     A                   D                        A                   A
     B                   B                         B                   B
     B                   B                         C                   C
     C                   B                                              D
     E                   A                                              E
     B                   C
     A                   A

Your program should be submitted in a file called