title: Printing string pyramid
body: <p>I want to print a pyramid pattern of string in python, but with user inputs of starting character and the no. of rows. I have wrote this code below so far,</p>
  <pre><code>c = input(&quot;Enter a character - &quot;)  
  def pattern(n):
      a = ord(c)
      for i in range(0, n):
              for j in range(0, i+1):
                  ch = chr(a)
                  print(ch, end=&quot; &quot;)
                  a = a + 1
          print(&quot;\r&quot;)
  n = int(input(&quot;Enter the no. of rows - &quot;))
  pattern(n) 
  </code></pre>
  <p>But the output is:</p>
  <pre><code>Enter a character - A
  Enter the no. of rows - 7
  A 
  B C 
  D E F 
  G H I J 
  K L M N O 
  P Q R S T U 
  V W X Y Z [ \ 
  </code></pre>
  <p>Instead I want that after it's execution till the character 'z', it starts printing from character entered by the user for the same line only. And I want to make it work for both uppercase and lowercase alphabets.</p>