Skip to content

Instantly share code, notes, and snippets.

@gunnarig
Created October 8, 2018 18:33
Show Gist options
  • Save gunnarig/ee45e1aff0a1be2192745fd1e453c42c to your computer and use it in GitHub Desktop.
Save gunnarig/ee45e1aff0a1be2192745fd1e453c42c to your computer and use it in GitHub Desktop.
def get_word_string(user_file):
user_file = open(user_file,"r")
states = []
#wordString = '' # start with an empty string of words
lines = user_file.readlines()
header = lines[0].split(",")
for line in lines[0:]:
items = line.split("\n")
states.append(items)
#print(states)
alex = states
return alex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment