Question 29 - Week 6 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 6
Question 29
00:00
Est. 2 min
Marks:
+4.00
0.00
What will be the output of the code snippet given below? ``` L = [-1, 1] for i in range(8): size = len(L) value = (L[size - 2] + L[size - 1]) * 2 L.append(value) print(L) ```
Single correct
Medium Difficulty
16 July 2023
A
[-1, 1, 0, 1, 1, 2, 3, 5, 8, 11]
B
[-1, 1, 0, 2, 4, 12, 32, 88, 240, 656]
C
[-1, 1, 0, -2, -4, -12, -32, -88, -240, -656]
D
[-1, 1, 0, -1, -1, -2, -3, -5, -8, -11]