> Thank you for helping me. I created the function ...
>
> What do you think? Were you suggesting something like this?
Yes indeed something like this (I did not check the exact conditions
you used, but that's your expertise :-)). Now you should just have to
come back to the template I sent you for
Dear Nicolas,
Thank you for helping me. I created the function:
sage: def is_king_tableau(t,no_of_rows):
: for i in range(no_of_rows):
: if t[0][0] != 1:
: return False
: elif t[i][0] <= 2*i:
: return False
: else:
: