title: How to remove a string within a string
body: <p>I am working on something in Python that reads a file and outputs some text.
  Let's say that I have this string:</p>
  <p><code>a = &quot;hello // world&quot;</code></p>
  <p>Using this function, I would remove the part of the string that comes after the double slash</p>
  <pre><code>def magic(input):
      return &quot;hello &quot;
  </code></pre>
  <p>How could I achieve this simply in python? (Basically I want to remove everything after the //)</p>