Skip to content

Commit

Permalink
Merge pull request #1859 from RAHULANUP/master
Browse files Browse the repository at this point in the history
New pattern
  • Loading branch information
geekcomputers committed Jul 15, 2023
2 parents 9351105 + 7e094f3 commit 88fee6d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Patterns/pattern6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Python code to print the following alphabet pattern
#A
#B B
#C C C
#D D D D
#E E E E E
def alphabetpattern(n):
num = 65
for i in range(0, n):
for j in range(0, i+1):
ch = chr(num)
print(ch, end=" ")
num = num + 1
print("\r")

a = 5
alphabetpattern(a)

0 comments on commit 88fee6d

Please sign in to comment.