Why does it give me this error /u/TheReddieRed Python Education

x1 = self.marked[0][0] y1 = self.marked[0][1] print(x1,y1) print(self.marked[0][0]) print(self.marked[0][1]) self.marked[0].remove(self.marked[0][0]) self.marked[0].remove(self.marked[0][1]) Hello from the pygame community. https://www.pygame.org/contribute.html 8 8 8 8 Traceback (most recent call last): File "e:- Copy (2)minesweeper copy.py", line 115, in <module> board.click(click) File "e:- Copy (2)minesweeper copy.py", line 77, in click self.marked[0].remove(self.marked[0][1]) ~~~~~~~~~~~~~~^^^ IndexError: list index out of range PS E:Jon - Copy (2)> 

submitted by /u/TheReddieRed
[link] [comments]

​r/learnpython x1 = self.marked[0][0] y1 = self.marked[0][1] print(x1,y1) print(self.marked[0][0]) print(self.marked[0][1]) self.marked[0].remove(self.marked[0][0]) self.marked[0].remove(self.marked[0][1]) Hello from the pygame community. https://www.pygame.org/contribute.html 8 8 8 8 Traceback (most recent call last): File “e:- Copy (2)minesweeper copy.py”, line 115, in <module> board.click(click) File “e:- Copy (2)minesweeper copy.py”, line 77, in click self.marked[0].remove(self.marked[0][1]) ~~~~~~~~~~~~~~^^^ IndexError: list index out of range PS E:Jon – Copy (2)> submitted by /u/TheReddieRed [link] [comments] 

x1 = self.marked[0][0] y1 = self.marked[0][1] print(x1,y1) print(self.marked[0][0]) print(self.marked[0][1]) self.marked[0].remove(self.marked[0][0]) self.marked[0].remove(self.marked[0][1]) Hello from the pygame community. https://www.pygame.org/contribute.html 8 8 8 8 Traceback (most recent call last): File "e:- Copy (2)minesweeper copy.py", line 115, in <module> board.click(click) File "e:- Copy (2)minesweeper copy.py", line 77, in click self.marked[0].remove(self.marked[0][1]) ~~~~~~~~~~~~~~^^^ IndexError: list index out of range PS E:Jon - Copy (2)> 

submitted by /u/TheReddieRed
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *