Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def csv_reader(filename):
- ''' gives back a list of every element in the csv file '''
- a = []
- try:
- with open(filename, "r") as csvfile:
- for row in csvfile:
- tmp = row.split(";")
- a.append(tmp[0])
- except FileNotFoundError:
- print("Could not find file, please retry.")
- main()
- return a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement