Skip to content

Commit d5c26a6

Browse files
committed
Minor Fix prateekiiest#4
1 parent fd43148 commit d5c26a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tic-tac-toe/tic-tac-toe.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def get_button(x, y):
191191
def calculate_board():
192192
global buttons
193193
board = []
194-
for x in range(len(buttons)):
195-
for y in range(len(buttons[x])):
194+
for x,_ in enumerate(buttons):
195+
for y,_ in enumerate(buttons[x]):
196196
if buttons[x][y]['text'] != " ":
197197
board.append(buttons[x][y]['text'])
198198
else:

0 commit comments

Comments
 (0)