title: How can i store for loop print value in variable or list
body: <p>I am actually new to python and just started learning it i am working with an module which is based on <a href="https://pokeapi.co/" rel="nofollow noreferrer">Pokeapi</a> and its name is <a href="https://github.com/PokeAPI/pokebase" rel="nofollow noreferrer">Pokebase</a> which is basically a python wrapper for that api so I am having a problem with it:
  Here's a for loop in which I print some data recieved by the api.
  <strong>Code:</strong></p>
  <pre><code>import pokebase as pb
  p1=pb.pokemon('charmander')
  for stat in p1.stats:
      print('{}: {}'.format(stat.stat.name, stat.base_stat))
  </code></pre>
  <p>actually I dont want to print this value I want to save this value in a variable or list how can i do that?</p>