title: 2D Array Manipulation (Replacing list elements)
body: <p>I'm creating a program which outputs a 5x5 matrix of 0's. I then ask the user to input a number between 0-25 which will turn the selected element to a 1</p>
  
  <p>I need the matrix output to show 0s, but really, behind the scenes it needs to be like this:
  1  2  3  4  5
  6  7  8  9  10
  11  12  13  14  15
  16  17  18  19  20
  21  22  23  24  25</p>
  
  <p>For example: User inputs 7. The matrix will then output: </p>
  
  <p>/output/
  Please enter a number between 0-25:</p>
  
  <p>0  0  0  0  0<br>
  0  1  0  0  0<br>
  0  0  0  0  0<br>
  0  0  0  0  0<br>
  0  0  0  0  0  </p>
  
  <p>What would be the easiest way to do this?</p>
  
  <hr>
  
  <p>Current code:</p>
  
  <pre><code>def main():
  
      grid = [[0 for row in range(5)]for col in range(5)] #creates a 5x5 matrix
  
      #prints the matrix
      for row in grid: #for each row in the grid
          for column in row: #for each column in the row
              print(column,end="  ") #print a space at the end of the element
          print()
  
  player1 = input("Please enter a number between 0-25: ")
  main()
  </code></pre>