Bonjour, question très conne mais je fais un sûrement un blocage mental.
J'ai 3 boucles imbriquées en Java du genre :for (int i = 0; i < id.length; ++i){....for (int j = i; j < id.length; ++j);........for (int k = i; k < j+1 ; ++k)
Et je tente de reproduire la même chose en python mais sans parvenir a trouver la syntaxe correcte.
for i in range(id.length): for j in range(id.length): for k in range(i, j+1): # ton code
Y’a peut-être plus jolie en Python, c’est une traduction littérale
len(id)
et le for j a pas les bonne bornes.