Solved

Pourquoi range(3) s'arrête à 2 dans la Forêt des murmures ?

Hugo Bernard @hugo_bernard

Je pensais que le troisième arbre aurait le numéro 3, mais la boucle arrose 0, 1 et 2. Le bosquet a un bug, ou il y a quelque chose que je n'ai pas compris ?

0 members found this helpful

3 replies

  1. Solution

    Léa Moreau @lea_moreau

    Ce n'est pas un bug : range(3) commence à 0 et s'arrête avant 3, donc on obtient 0, 1 et 2. Ça fait bien trois arbres.

    3 members found this helpful

  2. Théo Garnier @theo_garnier

    Astuce : lisez-le comme « trois pas, en partant de zéro ». On s'y fait vite.

    1 member found this helpful

  3. Hugo Bernard @hugo_bernard

    Ah d'accord, merci à vous deux ! Le quiz dit la même chose.

    0 members found this helpful

Your reply

Log in to reply, vote or follow this discussion.