Skip to content

Instantly share code, notes, and snippets.

@runqvist
Created May 2, 2020 10:11
Show Gist options
  • Save runqvist/dbe22850a0f9264671836a20cc3ca2ef to your computer and use it in GitHub Desktop.
Save runqvist/dbe22850a0f9264671836a20cc3ca2ef to your computer and use it in GitHub Desktop.
EMPTY = '.'
# making the matrix
matrix = []
for i in range(7):
# making a column
column = []
for j in range(6):
column.append(EMPTY)
# adding all rows/columns to a matrix
matrix.append(column)
print(matrix,'\n')
def display():
print(' ', '0 ', '1 ', '2 ', '3 ', '4 ', '5 ')
for a_column in range(len(matrix)):
print(a_column,' ', matrix[a_column]
def test():
print('this is a test')
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment