149k views
0 votes
QUESTION 4

Consider the list L= [0, 1, 1, 2, 3, 6, 8, 13, 21, 34] What will be output of the statement L [3:6)?
DA2, 351
B.10. 1, 1
G1, 2 31
D.None

1 Answer

6 votes

Answer: 2, 3, 6, 8

Step-by-step explanation:

i must tell you something very important.

in LISTS.... the FIRST thing is marked with a 0.

[0, 1, 1, 2, 3, 6, 8, 13, 21, 34]

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

do you see how these line up with each other?

the output would be 2, 3, 6, 8

User Takje
by
5.2k points