Connect 4 Program Python Tutorial

Connect 4 Program Python Tutorial Download
I need to ask the user how many rows and how many columns the user would like so my game can handle whatever sized boards but i don't know how to change my code. Here's my connect 4 code that's for a 6x7 board. Import randomdef winner(board):'This function accepts the Connect 4 board as a parameter.If there is no winner, the function will return the empty string '.If the user has won, it will return 'X', and if the computer haswon it will return 'O'.'
High school dreams free play. 'Author: Brian LamDate: January 18th, 2012.Description: This is a connect four program that asks for user input on whetheror not they want to go first.' 'import randomdef winner(board):'This function accepts the Connect 4 board as a parameter.If there is no winner, the function will return the empty string '.If the user has won, it will return 'X', and if the computer haswon it will return 'O'.'