I have a CSV (Excel) document with valid and invalid emails. And I wanted to get the values of the fields in the form of string , but the following code gives the return shown below:
import csv
import re
ifile = open('ead.csv', "r")
read = csv.reader(ifile, delimiter=' ', quotechar='|')
csvArray = []
for row in read :
csvArray.append(row)
print(csvArray[0:10])
Return:
[['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]'], ['[email protected]']]
>>>
But I need results to appear only '[email protected]'
without '[]'
, so I can validate them.