MCPcopy Create free account
hub / github.com/geekcomputers/Python / alphabetpattern

Function alphabetpattern

Patterns/pattern6.py:7–14  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

5# D D D D
6# E E E E E
7def alphabetpattern(n):
8 num = 65
9 for i in range(0, n):
10 for j in range(0, i + 1):
11 ch = chr(num)
12 print(ch, end=" ")
13 num = num + 1
14 print("\r")
15
16
17a = 5

Callers 1

pattern6.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected