Skip to content

Commit

Permalink
Pattern Works
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeratul committed May 9, 2023
1 parent f40e54a commit e81d05c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Binary file added .vs/2023-homework04-Seeratul/v17/.wsuo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
14 changes: 8 additions & 6 deletions strange_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

# implement the function strange pattern

def strange_pattern():
# delete the NotImplementedError when you write your function.
raise NotImplementedError
def strange_pattern(dims):
boolarray = np.zeros((dims[0], dims[1]), dtype=bool)
i = 0;
while (i < dims[0]):
boolarray[i][-i%3::3] = True
i+= 1
return boolarray


if __name__ == "__main__":
# use this for your own testing!

pass
print(strange_pattern((6,8)))

0 comments on commit e81d05c

Please sign in to comment.