I am attempting to write a list that is a "." at each index for as many times as there are supposed to be rows and columns in my game board. This is the code I am using, but the error I am getting is telling me that I cannot multiply the sequence by a non-int of type 'str'. I am using python 3.5.2.
def mkBoard(rows,columns):
board = ["."] * rows * columns
return board
#Take user input for number of rows and columns for the board and converts them into integers
rows = input('Enter the number of rows:')
int(rows)
columns = input('Enter the number of columns:')
int(columns)
#Create the board
board = mkBoard(rows,columns)