Breakthrough game

hello, i need help with import sys, i have a text file with 3 lines in it:

  • the first line represent the size of the board n*n
  • the second line represent the black pawns
  • the third lines represent the white pawns
    In the text file the second and third line are written sous form of “a5, b5”, which represent the position of the pawn in the board.
    I have to create a function using import sys and the text file so it can return a list of list. In the list the black pawns are represented by the number 2 and the white pawns by the number 1 and the space between the pawns are represented by a 0. It has to look like this :
    [[2, 2, 2, 2, 2],
    [2, 2, 2, 2, 2],
    [0, 0, 0, 0, 0],
    [1, 1, 1, 1, 1],
    [1, 1, 1, 1, 1]]
    Basically, i have a board with number on the side and letters on the bottom to find the position of the pawn. I have to use the text file to return the list just like above.
    How can i do this ? I know it’s not really clear so if you have any other question, please ask. Thank you.