python tuple to list [duplicate]

You were close. I believe this will do what you want:

p.policy_id = ((2309L,), (118L,), (94L,))

for i in p.policy_id:
    print i[0]

yields:

2309
118
94

Leave a Comment