title: Want to make two python lists have the same choice be chosen using random.choice()
body: <p>I am trying to make a Pokemon guesser game, where the names of the pokemon are stored in a list, and their types are stored in another list, as seen below:</p>
  <pre><code>gen1 = [&quot;Bulbasaur&quot;, &quot;Ivysaur&quot;, &quot;Venusaur&quot;, &quot;Charmander &quot;, &quot;Charmeleon&quot;, &quot;Charizard&quot;, &quot;Squirtle&quot;, &quot;Wartortle&quot;, &quot;Blastoise&quot;, &quot;Caterpie&quot;, &quot;Metapod&quot;, &quot;Butterfree&quot;, &quot;Weedle&quot;, &quot;Kakuna&quot;, &quot;Beedrill&quot;, &quot;Pidgey&quot;, &quot;Pidgeotto&quot;, &quot;Pidgeot&quot;, &quot;Rattata&quot;, &quot;Raticate&quot;, &quot;Spearow&quot;, &quot;Fearow&quot;, &quot;Ekans&quot;, &quot;Arbok&quot;, &quot;Pikachu&quot;, &quot;Raichu&quot;, &quot;Sandshrew&quot;, &quot;Sandslash&quot;, &quot;Nidoran♀&quot;, &quot;Nidorina&quot;, &quot;Nidoqueen&quot;, &quot;Nidoran♂&quot;, &quot;Nidorino&quot;, &quot;Nidoking&quot;, &quot;Clefairy&quot;, &quot;Clefable&quot;, &quot;Vulpix&quot;, &quot;Ninetales&quot;]
  gen1types = [&quot;grass&quot;, &quot;grass&quot;, &quot;grass&quot;, &quot;fire &quot;, &quot;fire&quot;, &quot;fire/dragon&quot;, &quot;water&quot;, &quot;water&quot;, &quot;water&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;normal&quot;, &quot;normal&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;electric&quot;, &quot;electric&quot;, &quot;ground&quot;, &quot;ground&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;fairy&quot;, &quot;fairy&quot;, &quot;fire&quot;, &quot;fire&quot;]
  </code></pre>
  <p>I want it to be so when a random pokemon is chosen from list gen1, the matching type is chosen along with it, for example if Bulbasaur is chosen, the matching type of that would be grass, I have written their types in the same order the pokemon are written, but I cannot get the correct type to match with the pokemon that is randomly chosen.. I tried to use gen1.index() but I would get an errors or the wrong type would be chosen. Can anyone help me with this?
  here is my full code so far:</p>
  <pre><code>import random
  life = 4
  
  genone = [&quot;Bulbasaur&quot;, &quot;Ivysaur&quot;, &quot;Venusaur&quot;, &quot;Charmander &quot;, &quot;Charmeleon&quot;, &quot;Charizard&quot;, &quot;Squirtle&quot;, &quot;Wartortle&quot;, &quot;Blastoise&quot;, &quot;Caterpie&quot;, &quot;Metapod&quot;, &quot;Butterfree&quot;, &quot;Weedle&quot;, &quot;Kakuna&quot;, &quot;Beedrill&quot;, &quot;Pidgey&quot;, &quot;Pidgeotto&quot;, &quot;Pidgeot&quot;, &quot;Rattata&quot;, &quot;Raticate&quot;, &quot;Spearow&quot;, &quot;Fearow&quot;, &quot;Ekans&quot;, &quot;Arbok&quot;, &quot;Pikachu&quot;, &quot;Raichu&quot;, &quot;Sandshrew&quot;, &quot;Sandslash&quot;, &quot;Nidoran♀&quot;, &quot;Nidorina&quot;, &quot;Nidoqueen&quot;, &quot;Nidoran♂&quot;, &quot;Nidorino&quot;, &quot;Nidoking&quot;, &quot;Clefairy&quot;, &quot;Clefable&quot;, &quot;Vulpix&quot;, &quot;Ninetales&quot;]
  genonetypes = [&quot;grass&quot;, &quot;grass&quot;, &quot;grass&quot;, &quot;fire &quot;, &quot;fire&quot;, &quot;fire/dragon&quot;, &quot;water&quot;, &quot;water&quot;, &quot;water&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;bug&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;normal&quot;, &quot;normal&quot;, &quot;flying&quot;, &quot;flying&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;electric&quot;, &quot;electric&quot;, &quot;ground&quot;, &quot;ground&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;poison&quot;, &quot;fairy&quot;, &quot;fairy&quot;, &quot;fire&quot;, &quot;fire&quot;]
  genone[0,1] = genonetypes[]
  x = random.choice(genone)
  .index(str(x))y = random.choice(genonetypes)
  print(y)
  print(str(&quot;The pokemon type is &quot; + y))
  userin = input(&quot;enter they pokemon you think it is: &quot;)
  if userin == x:
    print(&quot;yes&quot;)
  </code></pre>