Cowyeet/empty_matrix.py
EKNr1 d83f4c5cd7 Fixed Crash:
forgot to add some commas in strings in empty_matrix.py.
2023-11-12 17:04:46 +01:00

25 lines
349 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(str(line) + ",")
print("]")
matrix_str += "]"
pyperclip.copy(matrix_str)