#!/usr/bin/env python3 file_path = '/u1/class/cs151/HW9/people.csv' try: # fd for file descriptor fd = open(file_path, 'r') people = fd.readlines() for line in people: print(line.strip().split(',')) # line[0] that is the name # line[1] is the email fd.close() except FileNotFoundError: print('File does not exist.')