Computer Programing
Wednesday, November 19, 2014
function - matrix/array
def create_matrix(square_size):
array = []
for i in range(square_size):
array.append([])
for j in range(square_size):
array[i].append(0)
return array
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment