title: How to remove characters in a string AFTER a given character?
body: <p>I have a list of tuples that I want to remove the url extensions from. Here's what it looks like</p>
  
  <pre><code>['google.com', 'google.ru', 'google.ca']
  </code></pre>
  
  <p>Basically, I want to remove everything <em>after</em> the "<strong>.</strong>" in each one so that I'm returned with something like this</p>
  
  <pre><code>['google', 'google', 'google']
  </code></pre>
  
  <p>My instructions specifically tell me to use the <code>split()</code> function, but I'm confused with that as well. If it's also possible, I need to remove duplicates, so my final result would be:</p>
  
  <pre><code>['google']
  </code></pre>
  
  <p>Thanks for the help, sorry if my specifications are odd.</p>