MCPcopy 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
15def pattern(lines):
16 flag = lines
17 for i in range(lines):
18 print(" " * (i), "$" * (2 * flag - 1))
19 flag -= 1
20
21
22if __name__ == "__main__":

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected