Comma Separated Values


Create a Python program to read this file containing a names separted by commas and print all the unique names. Do not modify the file.

Here are the contents of the names.csv file:

Joe, George, Frank, Joe, Pete
Heather, Frank, George, Joe, Joni
Tim, Joe, Frank, Pete, Deb
Heather, Deb, Betty, Joni


The output should be (ignore order):

Joe
George
Frank
Pete
Heather
Joni
Tim
Deb
Betty


When you are done, let me know so I can check out your solution.



This page was last modified on 2024-01-11 at 15:31:03.

Copyright © 2018–2026 George Fox University. All rights reserved.