Python: monster list need monster help, how do I fill my list the proper way?
<p>So I started with Python yesterday and for my first project I want to make monsters battle each other.</p>

<p>I'm still at the start and I want to fill a list with monsters I created. My monster function asks for how many monsters it should create and gives back a list with all of them.</p>

<p>Somehow my code is wrong and only gives back one single monster :(</p>

<pre><code>def create_monster(number):
    monster = [0] * number

    for i in monster:
        """monster = [ID,GENDER,NAME,HP,ATK,DEF,SATK,SDEF,AGIL,]"""

        monster[i] = [monster_identifier(), monster_gender(), None]
        monster[i][2] = monster_name(monster[i][1])



    return monster
</code></pre>

<p>The output of this code is for number = 3 for example</p>

<pre><code>[[3, 'Male', 'Berid'], 0, 0]
</code></pre>

<p>but should be something like this</p>

<pre><code>[[1,'Male','Berid'],[2,'Female','David'],[3,'Male','Holger']]
</code></pre>