title: How to remove comma at the end of a string
body: <p>I'm working with an library called pokebase in Python which is a wrapper for Pokeapi.</p>
  <p><strong>Code:</strong></p>
  <pre><code>import pokebase as pb #pip install pokebase
  p1 = pb.pokemon('venusaur')
  types = ''
  for poketype in p1.types:
      types += poketype.type.name.capitalize()+', '
  print(types)
  </code></pre>
  <p>It prints the data like this:</p>
  <pre><code>Grass, Poison, 
  </code></pre>
  <p>So I learned how to use this API on a YouTube tutorial, but the problem here is that when i run the <code>for</code> loop it prints ', ' at the end of output also which is grammatically wrong. How can I fix that?
  I have tried to remove it using <code>end</code> and <code>separator</code> parameters to <code>print()</code> but it doesn't work. How can I remove the comma at the end?</p>