-
-
Save beltiras/accb6ec01b3adce41ab0e164a9c1a67e 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 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) | |
return states | |
my_data = get_word_string(input("Filename?")) | |
call_data_mangling(my_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment