318,773 views
37 votes
37 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

User Andrea Lazzarotto
by
2.8k points

1 Answer

17 votes
17 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 Ishwar Patil
by
3.1k points