title: How would I get everything before a : in a string Python
body: <p>I am looking for a way to get all of the letters in a string before a : but I have no idea on where to start. Would I use regex? If so how?</p>
  
  <pre><code>string = "Username: How are you today?"
  </code></pre>
  
  <p>Can someone show me a example on what I could do?</p>