25 lines
337 B
Python
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)
|