title: print pattern recursion
body: <p>I need to write a recursive function printPattern() that takes an integer n as a parameter and prints n star marks followed by n exclamation marks, all on one line.  The function should not have any loops and should not use multiplication of strings.  The printing of the characters should be done recursively only.  The following are some examples of the behavior of the function:</p>
  
  <pre><code>&gt;&gt;&gt;printPattern(3)
  ***!!!
  &gt;&gt;&gt;printPattern(10)
  **********!!!!!!!!!!
  </code></pre>
  
  <p>This is what I have at the moment</p>
  
  <pre><code>def printPattern(n):
  if n &lt; 1:
      pass
  else:
      return '*'*printPattern(n)+'!'*printPattern(n)
  </code></pre>
  
  <p>I know I am completely off, and this would be easier without recursion, but it is necessary for my assignment.</p>