Python Program:

- To print half triangle pattern using alphabet

Example:

User Input: 3

Output:

A
B B
C C C
rows=int(input("Enter number of rows : "))
c=65
for i in range(1,rows+1):
  for j in range(1,i+1):
    print(chr(c),end=" ")
  c+=1
  print("")

Output:

  Enter number of rows : 4
  A
  B B
  C C C
  D D D D
Program
pattern

Main logic :

c=65 # "A" starts from 65
for i in range(1,rows+1): #rows : number of rows to print
  for j in range(1,i+1):
    print(chr(c),end=" ")
  c+=1
  print("")

You can print the same pattern in small alphabets, just set c=97

Concept

Coming Soon !

Quick
Tutorial

Quote

A good decision is based on knowledge and not on numbers.