Created
May 2, 2020 10:11
-
-
Save runqvist/dbe22850a0f9264671836a20cc3ca2ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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