title: How to access the nltk/wordnet Synset object?
body: <pre><code>from nltk.corpus import wordnet as wn 
  
  print (wn.synsets('pretty')[0])
  </code></pre>
  
  <p>This code returns:</p>
  
  <blockquote>
    <p>Synset('pretty.s.01')</p>
  </blockquote>
  
  <p>However, I can't seem to be able to do anything with this class. Is there anyway to extract the 'pretty.s.01' string from the Synset so that I can compare it in an if statement?</p>