How to read spreadsheet file (CSV) in Python

1 Answer

0 votes
import csv

with open('d:\data.csv', 'r') as f:
    content = f.read()
    print(content)


'''
run:

name(A1), email(B1)
alice(A2),alice@email.com(B2)
alex(A3),alex@email.com(B3)

'''

 



answered Jun 29, 2018 by avibootz
edited Jun 30, 2018 by avibootz

Related questions

...