[Solved] Are booleans overwritten in python?


If it was

for i in range(1,10):
    if space_check(board, i):
         return False
    else:
         return True

then after the first iteration in the for loop the function would return. This would not lead the the expected behaviour. Currently, you check every space, and not just the first one

9

solved Are booleans overwritten in python?