title: Python Split Outputting in square brackets
body: <p>I have code that looks like this: </p>
  
  <pre><code>import re
  activity = "Basketball - Girls 9th"
  activity = re.sub(r'\s', ' ', activity).split('-')
  activity = str(activity [1:2]) + str(activity [0:1])
  print("".join(activity))
  </code></pre>
  
  <p>I want the output to look like <code>Girl's 9th Basketball</code>, but the current output when printed is
   <code>[' Girls 9th']['Basketball ']</code>
  I want to get rid of the square brackets. I know I can simply trim it, but I would rather know how to do it right. </p>