Isn't a list zero-indexed? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Isn't a list zero-indexed?

Why is this in a quiz return 8? list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]]) I think it should be 5.

12th Oct 2018, 2:16 AM
Jean-Fran├žois S.
Jean-Fran├žois S. - avatar
2 Antworten
+ 2
hye Jamie nice to meet you
13th Oct 2018, 10:58 AM
IZZERAN_SHAH
IZZERAN_SHAH - avatar
+ 1
oh i see. makes sense. thanks Jamie.
12th Oct 2018, 2:28 AM
Jean-Fran├žois S.
Jean-Fran├žois S. - avatar