title: Why is my output throwing an unexpected result?
body: <p>I am unsure why my code is not working. I have it copied verbatim from my instructor. </p>
  
  <pre><code>import urllib
  
  def read_text():
      quotes = open("C:\Users\Kyle\Desktop\movie_quotes.txt")
      contents_of_file = quotes.read()
      print(contents_of_file)
      quotes.close()
      check_profanity(contents_of_file)
  
  
  def check_profanity(text_to_check):
      connection = urllib.urlopen("http://www.wdyl.com/profanity?q="+text_to_check)
      output = connection.read()
      print(output)
      connection.close()
  
  read_text()
  </code></pre>
  
  <p>And the output:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html;charset=utf-8"&gt;
      &lt;title&gt;404 Not Found&lt;/title&gt;
      &lt;/head&gt;
      &lt;body text=#000000 bgcolor=#ffffff&gt;
      &lt;h1&gt;Error: Not Found&lt;/h1&gt;
      &lt;h2&gt;The requested URL &lt;code&gt;/profanity?q=shot&lt;/code&gt; was not found on this server.&lt;/h2&gt;
      &lt;h2&gt;&lt;/h2&gt;
      &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Why is this happening?</p>
  
  <p>Thank you!!</p>