title: How to populate a matrix in Python with variable values instead of just 0
body: <p>I am trying to create an m by n matrix in Python that will be populated by multiplying the row by the column. So myMatrix[0] would be 1, myMatrix[1] would be 2, ect. </p>
  
  <pre><code>m = int(input("What width is your matrix? "))
  type(m)
  n = int(input("What height is your matrix? "))
  type(n)
  
  myMatrix = [[0. for x in range(m)] for y in range(n)]
  </code></pre>
  
  <p>If I print my matrix everything looks good so far, all the values are 0 and it is the correct dimensions. I noticed I could play around with "0." and get different values (Like 1+0 would put all 1.0s, ect) but what I cannot seem to figure out is how to put a variable there instead. </p>
  
  <p>Ideally I would want to do something that multiples the row by the column, but I can't seem to find the syntax to accomplish that. Any idea or direction? Are you able to put anything in the matrix creation where "0." is or can you only do static integers?</p>