Cowyeet/empty_matrix.py
2023-11-12 16:58:39 +01:00

25 lines
337 B
Python

#!/usr/bin/python3
import pyperclip
width = int(input("Width: "))
height = int(input("Height: "))
print("[")
matrix_str = "[\n"
for bla in range(height):
line = []
for bla in range(width):
line.append(0)
matrix_str += str(line) + "\n"
print(line)
print("]")
matrix_str += "]"
pyperclip.copy(matrix_str)