[RWET]HW2 Dictionary, set, list

A few of practices I did after classes. From the tutorial, I started by using a set that’s looking for a unique words in “Pride and Prejudice”

python_set

And the result is a long set of unique words, where I notice same word with different punctuations are counted as different words.

Screen Shot 2016-02-26 at 12.02.48 PM

Next, I tried to create concordance dictionary in the tutorial, using Pride and Prejudice

python_concord dict

And the result is: (again, punctuation matters)

Screen Shot 2016-02-26 at 12.31.40 PM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply