Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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