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

Function pattern

Patterns/patterns.py:23–28  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

21
22
23def pattern(lines):
24 for i in range(1, lines + 1):
25 print("* " * i)
26 print()
27 for i in range(lines):
28 print(" " * i, "* " * (lines - i))
29
30
31if __name__ == "__main__":

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected