Writing pattern code but am not able find the result

i got my mistake, i missed logical “or” to “and” thank you… :slightly_smiling_face:

if ((col == 0 or col == 4) and (row != 0) or ((row == 0 or row == 3) and (col > 0 and col < 5))):

1 Like