CBSE Class 11 Computer Science
Question 79 of 104
List Manipulation — Question 15
Back to all questions 15
Question Question 14a
Find the errors:
L1 = [3, 4, 5]
L2 = L1 * 3
print(L1 * 3.0)
print(L2)Answer
The line print(L1 * 3.0) causes an error as Python does not allow multiplying a list with a non-int number and 3.0 is of float type.