title: Python - Nested Loop Multiplication Matrix
body: <p><a href="https://i.stack.imgur.com/IkZEq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IkZEq.png" alt="enter image description here"></a></p>
  
  <p>Evening!</p>
  
  <p>My goal is to get something similar to what is shown above using nested loops. I understand that nested loops are just another loop within another. I know that I must use a range for the top row and side column. However, I’m not sure how to whip up the math equation to output the factors of each number. </p>
  
  <p>This is what I have and I’m seriously struggling. </p>
  
  <pre><code>def main():
    for num in range(10):
      for row in range(9):
          for col in range(9):
              print(num, end=‘’)
      print()
  main()
  </code></pre>