Which line of code will cause an error ?
1. num= [5, 4, 3, [2], 1] 2. print(num[0]) 3. print(num[3][0]) 4. print(num[5])
Line 4
Reason — Index 5 is out of range because list has 5 elements which counts to index 4.