Created
January 11, 2015 23:18
-
-
Save amckinley/2f01266c7995b95c7bba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def austin_name_list(file_name): | |
with open(file_name) as f: | |
names = [] | |
for line in f.readlines(): | |
first, last = line.split(" ") | |
names.append(Name(first, last)) | |
return names | |
def golf_name_list(file_name): | |
return [Name(*line.strip().split(" ")) for line in open(file_name).readlines() ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment