вот мой код screen = [[1,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
chars = " █"
def update():
print(chars[screen[0,0]])
update() пишет ошибку
raceback (most recent call last):
File "c:\Users\USER\files\circle-printer.py", line 5, in <module>
update()
File "c:\Users\USER\files\circle-printer.py", line 4, in update
print(chars[screen[0,0]])
~~~~~~^^^^^
TypeError: list indices must be integers or slices, not tuple
chars = " █"
def update():
print(chars[screen[0,0]])
update() пишет ошибку
raceback (most recent call last):
File "c:\Users\USER\files\circle-printer.py", line 5, in <module>
update()
File "c:\Users\USER\files\circle-printer.py", line 4, in update
print(chars[screen[0,0]])
~~~~~~^^^^^
TypeError: list indices must be integers or slices, not tuple