Skip to content

Instantly share code, notes, and snippets.

@amckinley
Created January 11, 2015 23:18
Show Gist options
  • Save amckinley/2f01266c7995b95c7bba to your computer and use it in GitHub Desktop.
Save amckinley/2f01266c7995b95c7bba to your computer and use it in GitHub Desktop.
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