title: How to \n after an amount of X time
body: <p>I am a beginner in python programming.
  I need to make a Tic Tac Toe game but where the user can input the number of the X's and the Y's.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    def printboards():
      board_s1 = " _ "
      board_s2 = "| |"
      board_s3 = " _ "
      backspace = ("\n")
      print board_s1
      print board_s2
      print board_s3
      return
  boardX = raw_input("How many X boards do you want? (insert 1 more than you want) &gt; ")
  boardY = raw_input("How many Y boards do you want? (insert 1 more than you want) &gt; ")
  for xx in range(1,int(boardX)):
      printboards()
      for yy in range(1,int(boardY)):
          printboards()
  </code></pre>
  
  <p>But every time I run the program I am getting this:</p>
  
  <p><a href="https://i.stack.imgur.com/WghMW.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>And my second problem is that if I input 3 in BoardX and BoardY I am getting just 6 boxes and not 3x3 boxes.</p>
  
  <p>please help</p>