Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ pattern
Function
pattern
Patterns/pattern2.py:15–19 ·
view source on GitHub ↗
(lines)
Source
from the content-addressed store, hash-verified
13
14
15
def
pattern(lines):
16
flag = lines
17
for
i in range(lines):
18
print(
" "
* (i),
"$"
* (2 * flag - 1))
19
flag -= 1
20
21
22
if
__name__ ==
"__main__"
:
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected