Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ print_pattern
Function
print_pattern
To print series 1,12,123,1234......py:1–3 ·
view source on GitHub ↗
(rows: int)
Source
from the content-addressed store, hash-verified
1
def
print_pattern(rows: int) -> None:
2
for
i in range(1, rows + 1):
3
print(
""
.join(str(j)
for
j in range(1, i + 1)))
4
5
6
def
start():
Callers
1
start
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected