title: Why does my function players_list() keep looping when it's only called once?
body: <p>I'm writing the code for a game and during my so-far testing the function players_list() keeps looping even tough it is only called once. The function sixteen_is_dead(players)'s code is only for testing purposes. Can anyone tell me how to resolve the problem?
  I want to get the list from players_list() and run sixteen_is_dead(players) with it.</p>
  <pre><code>import random
  
  
  def sixteen_is_dead(players):
      if players[0][1] is True:
          print(&quot;Player 1 is not a Human!&quot;)
  
  
  def players_list():
      players = []
      player_count2 = 0
      player_count = int(input(&quot;How many players are there?: &quot;))
      for x in range(0, player_count):
          player_count2 += 1
          player_name = input(&quot;What's the {}. players name?: &quot;.format(player_count2))
          player_is_bot = input(&quot;Is the {}. ? player a bot? J/N: &quot;.format(player_count2))
          if player_is_bot == &quot;J&quot;:
              is_bot = False
          elif player_is_bot == &quot;N&quot;:
              is_bot = True
          players.append((player_name, is_bot))
      return players
      
          
  
  players_list()
  players = players_list()
  print(players)
  </code></pre>