Hello,
I confudsed,need printer the value of list (this is reaer from csv) . The 
reader is ok, but my problem is in the print moment because printer only the 
last value. For example my csv is:

[........]
us...@example.com;user1;lastName;Name
us...@example.com;user2;lastName;Name
[........]

But when execute the script I view the print is only the last user

[........]
ca us...@example.com displayName 'user2' sn 'lastName' cn 'Name'
[........]

And I need the next printer

[........]
ca us...@example.com displayName 'User1' sn ''lastName" cn 'Name'
ca us...@example.com displayName 'User2' sn ''lastName" cn 'Name'
[........]

My script is 

[........]
#!/usr/bin/python
import csv
with open ('users.csv', 'rb') as f:

        reader = csv.reader (f, delimiter=';' ) #delimiter tabulador
        for row in reader:

                mail     = row [0]
                name     = row [3]
                lastname = row [2]

        print "ma {} displayName '{}' sn '{}'".format(mail,name,lastname)

f.close()
[........]


Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to