Howw to prevent the duplication of any value in a column within a CSV file (python)

Adam Davis peakgraphicz at gmail.com
Wed Apr 27 08:23:10 EDT 2016


On Wednesday, 27 April 2016 07:37:42 UTC+1, Chris Angelico  wrote:
> On Wed, Apr 27, 2016 at 4:26 PM, Adam Davis <peakgraphicz at gmail.com> wrote:
> > I understand what you're saying! But where you say: " the_set = set()", what would go within the set brackets?
> 
> Nothing. The empty parentheses mean "call this with no arguments", and
> when you call the set constructor like that, you get back an empty
> set.
> 
> ChrisA

Thanks Chris. Where Ian says 'the_set.add(item)', what would be put within item in terms of my codes function/aim? 



More information about the Python-list mailing list