title: Unhashable type 'slice'
body: <p>I'm trying to write code that takes websites and skips the first 20 characters and prints the next 100. </p>
  
  <p>This is the code I have so far:</p>
  
  <pre><code>i = 0
  while i &lt;len(urls):
      html = urllib.request.urlopen(urls[i])
      bsobject = BeautifulSoup(html.read(), "html.parser")    
      print(bsobject.body[20:120])
      i+=1
  </code></pre>
  
  <p>I run it and it gives me the error "TypeError: unhashable type: 'slice' "</p>
  
  <p>Any help is appreciated :)</p>