title: Print an n level reverse pyramid as follows where n is a positive integer taken as input
body: <p>Print an n level reverse pyramid as follows where n is a positive integer taken as input.</p>
  <pre><code>Each triangle will be made out of “*” symbols and the spaces will be filled by &quot;#&quot; symbols for each row. For example, a 3 level reverse pyramid will look as follows:
  
      *****
      #***#
      ##*##
      Note: There should be no space between the stars. Remember to not print any extra character or spaces or else your solution could be rejected.
      Sample input:
      4
      Sample output:
      *******
      #*****#
      ##***##
      ###*###
  </code></pre>
  <p>Below is the code:</p>
  <p>Code:</p>
  <pre><code>def print_pattern(n):
      for i in range(1,n+1):
          for j in range(i-1):
              print('#',end='')
          for k in range((n+1)-i):
              print('*',end= '')
          for m in range(n-i):
              print('*',end='')
          for j in range(i-1):
              print('#',end='')
          print('\r')
  print_pattern(4)
  </code></pre>
  <p>Error:</p>
  <pre><code>None of my Test cases are Passing
  </code></pre>