sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31255
[Question #264149]: How to read a row one by one in the for loop
New question #264149 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264149
Hello,
I want to use the For Loop and print a row one by one whatever i required.
here is my code:
import csv
with open("details.csv") as csvFile:
reader = csv.DictReader(csvFile)
for row in reader:
#print(row['Name'], row['age'], row['DOB'])
if['age'] == '21':
print(row['Name'], row['age'], row['DOB'])
else:
continue
Here i want run the for loop until 6 times and also i want specific data of who ever age is '21', that person details only i want print, if it is other than '21' then skip the row. but my code is doesn't perform exactly like i want.
can anyone help me..?
Thank you :)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.