Is there something I can return instead of 'None' so that it's still iterable but empty? Sometimes I want to return two values but sometimes I only want to return one.
for distance in range(1, 8):
temp_cords = [(origin[0] - ((origin[0]-check[0])*distance)), (origin[1] - ((origin[1]-check[1])*distance))]
if temp_cords in all_locations:
return False, None #I want to return only 'False' here.
elif temp_cords in (white_locations + black_locations):
if white_turn:
if temp_cords in white_locations:
return True, (distance - 1) #But here, I want to return two values.