This file contains hidden or 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
# Enter The Matrix | |
import os, time, msvcrt, random | |
os.system('color 07') | |
os.system('cls') | |
x = [1, 2, 3, 4, 5, 6, 8, | |
15, 20, 21, 32, 32, 32, 32, | |
32, 33, 35, 36, 37, 38, 48, |
This file contains hidden or 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
def repmat(matrixA, rowFinal, colFinal): | |
return [matrixA[i] * colFinal for i in range(len(matrixA))] * rowFinal |