title: Writing a function that takes two strings as input and replaces it with asterisks
body: <p>I am on Codecademy exercise 10/15. The goal is to create a censor function that 
  take the string "this hack is wack" and replace it with "this **** is wack"</p>
  
  <pre><code>def censor("this hack is wack", "hack"):
       def "h,a,c,k".split():
            for letter in list: 
                         "*" 4
                  "".join(list)
      return list 
  </code></pre>
  
  <p>1) Im pretty sure that you don't need to define a function inside of a function so would I store the split function as a variable? </p>
  
  <p>2) How would I rewrite the .join function to get the new sentence with the asterisks after it is done looping through each letter in hack</p>