title: Python Connect 4 Game- Print X on Board
body: <p>I am trying to create a connect four game but I cannot figure out how to print the checkers on the board. I need it to print the X at the lowest available spot in the column that the user inputted. Each time I run the program, I get the same blank 6 by 7 board. Please help. thank you!</p>
  
  <pre><code>#ConnectFour
  
  numRows=6
  numCols=7
  numPlayers=2
  board=[]
  checkers=['X','O']
  turn=0
  win = False
  
  for row in range(numRows):
      tempList=[]
      for col in range(numCols):
              tempList.append('.')
      board.append(tempList)
  
  while not win:
      turn = (turn+1)%numPlayers
  
      userCol = input ("Player"+str(turn+1)+"please enter your col: ")
      while not userCol.isdigit() or not int(userCol) in range(numCols):
          userCol = input ("Player"+str(turn+1)+"please enter your col: ")
  
      for row in range(numRows):
          for col in range(numCols):
              print(board[row][col], end='')
          print()
  
      for repeat in range(numRows-2):
          for row in range(numRows,-1,-1):
              for col in range(numCols):
                  if board[row][int(userCol)]==".":
                      board[row+1][int(userCol)]="X"
                      print
              break
  
  
  #print board
  for row in range(numRows):
      for col in range(numCols):
              print(board[row+1][userCol],end=' ')
      print()
  
  print ("Player", checkers[turn],"has won the game.")
  </code></pre>