MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / draw

Function draw

Solutions/1_1/art.py:8–10  ·  view source on GitHub ↗
(rows, columns)

Source from the content-addressed store, hash-verified

6chars = '\|/'
7
8def draw(rows, columns):
9 for r in range(rows):
10 print(''.join(random.choice(chars) for _ in range(columns)))
11
12if __name__ == '__main__':
13 if len(sys.argv) != 3:

Callers 1

art.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected