I was try to learn how to find a string or value in csv using python. i was think it's simple but when i was try to execute my code, i don't understand why my code cannot find the string what i want. This is my code :
import csv
with open('sample2.csv', 'rt') as baca:
read = csv.reader(baca, delimiter='\'')
for row in read:
match = row[0]
if match == "Sample":
print match
And also i was try to print "row[0]" and the result is like this :
id name number
1 Sample 0123450000007
Print a "row" without index :
{'id\tname\tnumber': '1\tSample\t0123450000007'}
The screenshot :

match = row[1]