Advertisements
Advertisements
Question
If L1 = [1, 2, 3, 2, 1, 2, 4, 2, . . . ], and L2 = [10, 20, 30, . . .], then
(Answer using builtin function only)
Write a statement to count the occurrences of 4 in L1.
One Word/Term Answer
Solution
L1.count(4)
shaalaa.com
Is there an error in this question or solution?