#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 12 20:07:45 2018

@author: Jake
"""

def create_cast_list(filename):
    cast_list = []
    
    with open('/Users/Jake/Documents/School Stuff/Udacity - AI Programming with Python/Scratch Project/flying_circus_cast.txt') as f:
        for line in f:
            cast_list.append(line.split(',')[0])

    return cast_list

cast_list = create_cast_list('flying_circus_cast.txt')
for actor in cast_list:
    print(actor)