Skip to content

Instantly share code, notes, and snippets.

@rawrgulmuffins
Created February 28, 2016 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawrgulmuffins/c9bd73ecd93274451cb0 to your computer and use it in GitHub Desktop.
Save rawrgulmuffins/c9bd73ecd93274451cb0 to your computer and use it in GitHub Desktop.
Read from csv example
test test2 test3
test4 test5 test6
import csv
with open("example.csv") as csv_handle:
example_reader = csv.reader(csv_handle)
for row in example_reader:
for item in row:
print(item) # prints individual element
print(row) # prints a list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment