Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
chars =
'\|/'
7
8
def
draw(rows, columns):
9
for
r in range(rows):
10
print(
''
.join(random.choice(chars)
for
_ in range(columns)))
11
12
if
__name__ ==
'__main__'
:
13
if
len(sys.argv) != 3:
Callers
1
art.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected