title: NameError: name 'urllib' is not defined
body: <p>Hello guys now I know there are solutions on stack overflow I just did not understand them, here is my code</p>
  
  <pre><code>enter code here
  import urllib.request import urlopen
  
  def read_text():
  quotes = open(r"C:\Users\LEON\Desktop\python\Swear_words.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.wdylike.appspot.com/q=s"+text_to_check)
  output = connection.read()
  
  
  read_text() 
  </code></pre>
  
  <p>error
     NameError: name 'urllib' is not defined</p>