title: Trouble removing extra hyphens from string in python?
body: <pre><code>def checkio(line):
     list.remove(max("---"))
     list.remove(min("--"))
     return line
  
  if __name__ == '__main__':
      assert checkio('I---like--python') == "I-like-python", 'Example'
  </code></pre>
  
  <p>$ I am trying to remove the "---" and the "--" from the string I like python and it does nto seem to be working. Any help? </p>