Missugune tingimuslause tuleks asendada lünka, et väljastataks ruutmaatriksi tabel nurkmised elemendid?

for i in range(len(tabel)):
  for j in range(len(tabel[i])):
    ...
      print(tabel[i][j])

if i == 0 or i == len(tabel)-1 or j == 0 or j == len(tabel[i])-1:
if (i == 0 or i == len(tabel)-1) and (j == 0 or j == len(tabel[i])-1):
if i == 0 and i == len(tabel)-1 or j == 0 and j == len(tabel[i])-1:
if i == 0 and i == len(tabel)-1 and j == 0 and j == len(tabel[i])-1:
Ükski eelnev ei sobi.