title: How to strip the string which contain forward slash?
body: <p>i am new to python programming,trying to strip the string which contains forward slash character,i expected output as '/stack' but giving result as below. Could you help me how can i achieve expected output.Is there any other easy way to achieve the same. </p>
  
  <pre><code>&gt;&gt;&gt; name='/stack/overflow'
  &gt;&gt;&gt; sub ='/overflow'
  &gt;&gt;&gt; name.strip(sub)
  'stack'
  </code></pre>
  
  <p>Thanks in advance
  hema</p>